Ctags tool installed under ubuntu
ctags tool stands Generate tag files for source code. Scan the specified source file for syntax elements contained therein, and to find the relevant content of the record, so that when code browsing and finding they can use these records to find and implement a jump function.
First, install ctags tool
sudo apt-get install ctags
Second, the index file
Performed in the file folder you want to index files directory:
In / usr / include general
sudo ctags -R *
After you will find more than a tags file, which is the index file
Third, set the index file location
vim need to set the location of tags in the file.
In the / etc vim / vimrc file inside Add / (Note: To add your own path to the index file, I added just below the path)
Excuting an order:
sudo vim /etc/vim/vimrc
Then add the path to the last file tags following is an example
set tags=/usr/include/tags
This completes the configuration we do an experiment to test next: vim -t type
vim -t printf