Reference from: http://www.cnblogs.com/caosiyang/archive/2011/12/23/2299190.html
http://blog.csdn.net/duguteng/article/details/7414592
1.taglist download page: http://sourceforge.net/projects/vim-taglist/files/vim-taglist/
At the command line, enter:
wget http://Www.vim.org/scripts/download_script.php?src_id=19574-O abc.zip && Unzip- o-d./abc.zip && mv doc/taglist.txt /usr/share/vim/vim[0-9][0-9]/doc/&& mv plugin/ taglist.vim/usr/share/vim/vim[0-9][0-9]/plugin/&& rmdir Doc plugin
2. In. VIMRC, add the following:
"Syntax HighlightingSyntax on"Show Line NumbersSet number"Auto Indent and C language style indentationSet Autoindentset cindent"Indent WidthSet tabstop=4Set Softtabstop=4Set Shiftwidth=4"It is recommended to turn on the Expandtab option, which will automatically tab extension to a space, the code indentation will be more beautifulSet Expandtab"Set Noexpandtab"switch case Alignment styleSet CINO=G0,:0""TagList"Let tlist_show_one_file=1 "Show only tags for the current fileLet Tlist_winwidth= + "Set taglist widthLet tlist_exit_onlywindow=1 "taglist window is the last window, exit vimLet tlist_use_right_window=1 "Display the TagList window on the right side of the vim windowSet Mouse=a"Always use mouse
let tlist_use_singleclick=1 "Enable the mouse to click in the Tlist
Let Tlist_auto_open=1 "turns on vim by default when Tlist is turned on
Let tlist_ctags_cmd= "/usr/bin/ctags" "Associates taglist with Ctags
3. The command to use or exit Tlist is : Tlist
Window switch is: ctrl+ww
4."Common configuration Options"
-The Tlist_ctags_cmd option is used to specify the location of your exuberant Ctags program, if it is not in the path defined by your PATH variable, you need to use this option to set it up;
-If you do not want to display the tags in multiple files at the same time, set Tlist_show_one_file to 1. The default is to display the tag in multiple files;
-setting Tlist_sort_type to "name" allows TagList to be sorted by tag name, by default in the order in which the tag appears in the file. Sort by the scope of the tag (that is, the namespace or class that belongs to), has joined the TagList Todo List, but has not yet supported;
-If you are thinking that the TagList window is the last window when you exit Vim, set Tlist_exit_onlywindow to 1;
-If you want the TagList window to appear on the right, set Tlist_use_right_window to 1. The default is shown on the left.
-In Gvim, if you want to display the TagList menu, set Tlist_show_menu to 1. You can use Tlist_max_submenu_items and tlist_max_tag_length to control the number of menu items and the length of the Tag names displayed;
-By default, when you double-click a tag, you will jump to the location of the tag definition, if you want to click on the tag to jump, set Tlist_use_singleclick to 1;
-If you want to automatically open the TagList window after starting vim, set Tlist_auto_open to 1;
-If you want to automatically close the TagList window after selecting the tag, set Tlist_close_on_select to 1;
-When the tag is displayed in multiple files at the same time, setting Tlist_file_fold_auto_close to 1 allows taglist to display only the current file tag, and the tags of the other files are folded up.
-When using: Tlisttoggle to open the TagList window, if you want the input focus in the TagList window, set the Tlist_gainfocus_on_toggleopen to 1;
-If you want TagList to always parse the tag in the file, regardless of whether the TagList window is open, set tlist_process_file_always to 1;
-Tlist_winheight and Tlist_winwidth can set the height and width of the taglist window. Tlist_use_horiz_window for 1 setting taglist window horizontal display;
5. in the TagList window , you can use the following shortcut keys:
<CR> jump to the position defined by tag under the cursor, double-click the tag function with the mouse
o display the cursor under tag in a newly opened window
<Space> display the prototype definition of tag under cursor
U update tag in taglist window
s change sort mode, toggle between sort by name and sort by order
x taglist window zooms in and out to make it easier to see longer tags
+ Open a folding, with Zo
-Fold the tag together with ZC
* Open all folds, with ZR
= Fold all tags together with ZM
[[Skip to previous file]
]] to skip to the next file
Q Close TagList window
<F1> Show Help
VIM Installation TagList