Use Vim + Taglist + Ctags to read and edit the code

Source: Internet
Author: User
Use Vim + Taglist + Ctags to read and edit the code-Linux general technology-Linux programming and kernel information. The following is a detailed description. In fact, this combination is very practical and basically reaches the source insight realm without a mouse. The most important thing is that it can run in text mode.

The platform used is Fedora 8.

Vim and Ctags are available after F8 is installed.

You need to download the Taglist by yourself.

1. Download a zip file of Taglist, decompress it, and copy taglist. vim ~ /. Vim/plugin directory.

2. Modify ~ /. Vim/plugin/taglist. vim

In if! Exists ('loaded _ taglist ')
Let Tlist_Ctags_Cmd = "/usr/bin/ctags"

Result:
CODE: "Line continuation used here
Let s: cpo_save = & cpo
Set cpo & vim

Let Tlist_Ctags_Cmd = "/usr/bin/ctags"

If! Exists ('loaded _ taglist ')
"First time loading the taglist plugin
"
"To speed up the loading of Vim, the taglist plugin uses autoload
"Mechanic to load the taglist functions.
"Only define the configuration variables, user commands and some
"Auto-commands and finish sourcing the file

"The taglist plugin requires the built-in Vim system () function. If this
"Function is not available, then don't load the plugin.
If! Exists ('* system ')
Echomsg 'taglist: Vim system () built-in function is not available .'.
\ 'Plugin is not loaded .'
Let loaded_taglist = 'no'
Let & cpo = s: cpo_save
Finish
Endif

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.