Llinux C Learning Notes 06--tlist use (programming tools)

Source: Internet
Author: User
Tags prototype definition tag name

To make it easy to program with Vim, a handy gadget taglist is installed, and here are some instructions for taglist to use.

Common taglist configuration options, which can be configured according to your own habits:

  • The tlist_ctags_cmd option is used to specify the location of your exuberant Ctags program, and if it is not in the path defined by your PATH variable, you need to set it up with this option;
  • 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 the 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 you start 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 in multiple files is displayed simultaneously, setting tlist_file_fold_auto_close to 1 allows taglist to display only the current file tag, and the tag of the other files is collapsed.
  • 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;

In the TagList window, you can use the following shortcut keys:

<CR>          jump to the cursor under tag defined position, with the mouse double-click the tag function also the same o             in a new open window display cursor under the tag<space>       display cursor under the tag's prototype definition U             Update tags in the taglist window to             change the sorting method, in the sort by name and in the order of appearance switch x             taglist window zoom in and zoom out, easy to see the long tag+             open a folding, with the zo-             fold the tag up, With zc*             Open all the folds, with zr=             will all tag folded up, with zm[[            jump to previous file]]            jump to the latter file Q             close taglist window <F1>          

You can open the TagList window with ":tlistopen" andclose the TagList window with ": Tlistclose". Alternatively, use ": Tlisttoggle" to toggle between open and close. The following mappings are defined in my VIMRC, and the TagList window can be opened/closed using the <F9> key:

Llinux C Learning Notes 06--tlist use (programming tools)

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.