VIM + Linux + ctags + taglist + winmanager + grep + cstab + supertab + visualmark -- taglist

Source: Internet
Author: User

Use the taglist plug-in:

1 download: http://www.vim.org/scripts/script.php? Script_id = 1, 273
2. Decompress unzip-N taglist-D taglist_42.zip-to the taglist directory.
3. Copy: sudo CP./taglist/doc/*/usr/share/Vim/vim70/doc/
Sudo CP./taglist/plugin/*/usr/share/Vim/vim70/plugin/
Note: The above directory depends on your machine. The taglist is the current download directory;
/Usr/share/Vim/vim70/doc/is the local directory. Maybe your machine is/usr/share/Vim/vim71/doc/or something. Please find the corresponding directory
4. Help: Help taglist.txt

5 functions:

"Tag list" has the following features:
* In vim, a vertical or horizontal split window shows the tags (functions, classes, structures,
Variable, etc)
* In GUI vim, you can select to display tags in the drop-down menu and pop-up menu.
* When you switch between multiple source files and buffer ranges, the taglist window is automatically updated accordingly.
When you open a new file, the tags defined in the new file will be added to the existing file list,
The tags defined in all files are displayed in groups by file name.
* When you select a tag in the taglist window, the cursor in the source file automatically jumps to the tag
Meaning
* Automatically highlight the current Tag Name
* Each tag is grouped by type and displayed in a foldable tree structure.
* The original tag type and scope can be displayed.
* In the taglist window, you can select the original type of the displayed tag to replace the tag name.
* The tag list can be sorted by Tag name or time.
* Source files in the following languages are supported: Assembly, ASP, awk, beta, C,
C ++, C #, COBOL, Eiffel, Erlang, Fortran, HTML, Java, JavaScript, lisp,
Lua, make, Pascal, Perl, PHP, Python, Rexx, Ruby, scheme, Shell, slang,
SML, SQL, TCL, OpenGL, VIM and YACC.
* It can be easily expanded to support new languages, and modifications to new languages are also very easy.
* Some functions are provided to display the current tag name in the vim status bar or in the window title bar.
* The file and tags list in the taglist can be saved and loaded between Vim sessions.
* Some commands are provided for obtaining the Tag Name and original type.
* It can be used in both vim and GUI Vim on the console.
* The. winmanager plug-in can be used with the winmanager plug-in to allow you to use a file browser at the same time,
The buffer browser and taglist plug-in are just like an IDE.
* It Can Be Used in UNIX and MS-Windows systems.

Tagslist is characterized by: http://blog.csdn.net/wooin/archive/2007/10/31/1858917.aspx

5 usage:
First, go to your ~ /Add the following two sentences to the vimrc file:
Let tlist_show_one_file = 1
Let tlist_exit_onlywindow = 1
 
Use Vim to open a C source file:
$ Vim ~ /Src/vim71/src/Main. c
Note: This directory is the source code directory.
 
Enter vim and use the following command to open the taglist window.
: Tlist
6 results:

the window on the left is the taglist window described above, which lists main. the tags in the C file are classified according to "typedef", "variable", and "function. move the cursor over vimmain, with a red box on the left and press Enter. The source Program automatically jumps to the definition of vimmain, the red box on the right. this is the most basic and commonly used taglist operation. I will teach you a common operation. If you do not want to redirect the source code when browsing the taglist window, but want to see the complete expression of the tag in the source code, you can move the cursor to the tag you want to see, and then press the Space key, in the command bar below, the yellow box below, the complete syntax of the tag in the source code is displayed, rather than jump to the source code.

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.