Ctags
1. Download: http://sourceforge.net/projects/ctags/files/ctags/5.8/ctags-5.8.tar.gz/download
2. Compile:./configure-prefix/usr/local/ctags where-prefix specifies the installation directory
Make, make install
3. Use: Ctags-r. Compile tags to create all files (a tags file will be generated in the current directory)
TagList
1. Download: http://www.vim.org/scripts/script.php?script_id=273
2. Install: Copy doc, plugin to ~/.vim/in the corresponding directory (if not, create a new doc, plugin directory), and then in the ~/.vim/doc directory, start Vim, execute: helptags.
3. Use: Vim-t tagName to open the file where the TagName is located
4. Common commands:
: Tag TagName, jump to the corresponding tagName in the TagList window
: Tselect tagName, Global search TagName
: Tlist, open taglist window
CTRL +] to jump to the definition of the function at which the cursor is located
Ctrl+t, jump to the last cursor location
Nerdtree
1. Download: http://www.vim.org/scripts/script.php?script_id=1658
2. Install: Copy doc, plugin to ~/.vim/in the corresponding directory (if not, create a new doc, plugin directory), and then in the ~/.vim/doc directory, start Vim, execute: helptags.
VIM uses:
ctrl+w+h, switch window to the left
ctrl+w+l, switch the window to the right.
VIMRC Configuration
1. Copy a VIMRC to ~/.VIMRC, which does not affect the system's default configuration
2. Add your own configuration items at the end of the file
The basic configuration
if has("syntax") Syntax highlighting
syntax on
endif
Set number "Displays line numbers
ColorScheme Ron "color scheme elflord Ron Peachpuff default
Set showmatch"match parentheses
Set Title
the TagList configuration
Let tlist_show_one_file= 1
Let tlist_exit_onlywindow= 1
the ctags configuration
Let tlist_ctags_cmd= '/usr/local/ctags/bin/ctags ' ctags location after compilation and installation
the Nerdtree configuration
Map <F3> : Nerdtreemirror<CR> F3 Open Nerdtree
Map <F3> : Nerdtreetoggle<CR>
Reference:
http://lnmcc.net/2013/04/01/mac%E4%B8%8Bvim-taglist-ctags/
Http://blog.chinaunix.net/uid-23089249-id-2855999.html
http://easwy.com/blog/archives/advanced-vim-skills-taglist-plugin/
Vim Personal Configuration Summary