use of ctags under Vim
1. Installation of Ctags
Source Installation:
Download source code
./configure
Make
sudo make install
under Ubuntu or Debian:
sudo apt-get install ctags 2. tags file
Create tags
Ctags-r * or Ctags-r.
Configure VIMRC to let vim find tags automatically
Vim ~/.VIMRC
Set tags=./tags;
Where./tags represents the directory where the current open file is located (not the current directory, if removed./then the current directory) under the tags file, semicolon; Indicates automatic upward recursion looking for tags files 3. Common Operations
Vim opens the file where "tag" is located
Vim-t tag
opens the tag list for the identifier where the cursor is located
: TS
jumps to the identifier where the cursor is defined
CTRL +] or CTRL + W]
The latter will open the jump horizontally split screen
Jump Back
Ctrl + t
jump to the next tag in the tag list
: TN
jumps to the previous tab of the tag list
: TP