Use taglist in VIM (more detailed)

Source: Internet
Author: User
Tags prototype definition

The help entry for the commands used in this section:

: Help helptags

: Help taglist.txt 

Use the following command to generate a Help Tag

: Helptags ~ /. Vim/doc

The following describes commonTaglistConfiguration options, you can configure according to your habits: 

-Tlist_ctags_cmdOption to specify yourExuberant ctagsProgramIf it is not in youPathYou need to use this option to set the path defined by the variable;

-If you do not want to displayTag, SetTlist_show_one_fileIs1. By defaultTag;

-SetTlist_sort_typeIs"Name"EnableTaglistToTagNames are sorted. By defaultTagSort the order in the file. PressTagThe range (that is,NamespaceOrClass) Sorting, addedTaglistOfTodo List, But not yet supported;

-If you wantTaglistExit when window is the last windowVim, SetTlist_exit_onlywindow1;

-If you wantTaglistThe window appears on the right. SetTlist_use_right_windowIs 1. It is displayed on the left by default.

-InGvimIf you want to displayTaglistMenu, SetTlist_show_menuIs 1. You can useTlist_max_submenu_itemsAndTlist_max_tag_lengthTo control the number and display of menu entriesTagThe name length;

-By default, double-clickTagWill jump to thisTagLocation, if you want to clickTagJump, SetTlist_use_singleclick1;

-If you want to startVimAutomatically openTaglistWindow, SetTlist_auto_openIs1;

-If you want to selectTagAutomatically disableTaglistWindow, SetTlist_close_on_selectIs1;

-When multiple files are displayed simultaneouslyTag, SetTlist_file_fold_auto_close1 to enableTaglistShow only the current fileTag, Other filesTagAre collapsed.

-In use: TlisttoggleOpenTaglistWindow, if you want to enter the focus inTaglistWindow, SetTlist_gainfocus_on_toggleopenIs1;

-If you wantTaglistAlways parseTagNo matterTaglistWhether the window is opened or not. SetTlist_process_file_alwaysIs1;

-Tlist_winheightAndTlist_winwidthConfigurableTaglistThe height and width of the window.Tlist_use_horiz_windowSet for 1TaglistThe window is displayed horizontally;

 

InTaglistIn the window, you can use the following shortcut keys:

<CR> Jump to the position defined by the tag under the cursor and double-click the tag.
O Display the tag under the cursor in a new window
<Space> Display the prototype definition of the tag under the cursor
U Update tags in the taglist window
S Change the sorting method and switch between name-based and order-based
X The taglist window is zoomed in and out to facilitate viewing long tags.
+ Open a fold, same as Zo
- Fold the tag, same as ZC
* Open all folds, same as Zr
= Fold all tags, same as ZM
[[ Jump to the previous file
] Jump to the next file
Q Close the taglist window
<F1> Show Help

 

You can use": Tlistopen"OpenTaglistWindow,: TlistcloseCloseTaglistWindow. Or use": Tlisttoggle"Switch between open and close.

You can customize the shortcut keys in myVimrcDefines the following ing, using", TL"Key to open/CloseTaglistWindow:

Map TL: tlisttoogle

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.