Vim trial II: Install taglist

Source: Internet
Author: User

1. Download The ctags file from the following address and copy the ctags.exe file to the gvim directory, for example, E: \ Vim \ vim73 \ ctags.exe.
Http://sourceforge.net/projects/ctags/files/ctags/5.8/ctags58.zip/download

After that, you 'd better configure the system path (for Windows) and add the vim path after the path, for example:

 

2. Download The taglist from the following address and copy the doc and plugin to the corresponding directory of gvim:
Http://www.vim.org/scripts/script.php? Script_id = 1, 273
Copy the doc \ taglist.txt file ~ \ Vim \ vimfiles \ doc
Copy the plugin \ taglist. Vim file ~ \ Vim \ vimfiles \ plugin

 

3. Configure the _ vimrc file and add the following lines to _ vimrc (enter your own path in the second line ):

"Specifies the ctags.exe path let tlist_ctags_cmd = 'e: \ Vim \ vim73 \ ctags.exe 'Let tlist_auto_open = 1

Use Vim to open a file again, and the taglist is displayed on the left side:

 

4. taglist command
Input: tlist can be used to open or close the taglist.
Press F1 to view all available commands

 

5. "e433: No tag file" error

The reason is that no tag is generated for the file,

There is a test. TCL (TCL language file) on disk F)

The method is as follows: F :\> ctags test. TCL

If it is a project that contains multi-level folders and multiple files, if it is a test folder, enter the test folder (-r indicates recursion) F: \ test> ctags-R * and then set the tags path in VIM: Set tags = F: /tags 6. The last problem I encountered sometimes you still cannot fully obtain the ctags function in windows. In this case, check the line of code in your _ vimrc file:
"Specifies the ctags.exe path let tlist_ctags_cmd = 'e: \ Vim \ vim73 \ ctags.exe'

Check whether the path is correct. If you have configured E: \ Vim \ vim73 \ In path, you can safely delete this line. I started to make an error on my PC. Then I deleted this line, but kept the configuration in path correct.

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.