Talk vim together (15th: Ctags of Vim plugin)

Source: Internet
Author: User


Everyone crossing, welcome to listen to the large-scale couplet science fiction: Vim. Last time we introduced the VIM plug-in with the

The file is placed. This time, let's continue to talk about Vim's plugin. This time we want to say the vim plugin called: Ctags. Well, that's the same thing.

Gossip Hugh, words return to the positive. Let's talk about vim together!


Crossing, we are talking about the plugin in vim: Ctags. Ctags is a tool, or an application software. It can be done via plugins

In the form of vim. "What is Ctags", crossing asked, is exactly what I want to say, Ctags is mainly used to generate tags tagged with tags

Files, we can quickly find what we want through tags tags. Make a metaphor: when we go to a city to travel, we will certainly see

Map of the city and then find the sights we want to travel through the map. Ctags is like a city map, we can find a way through it

function or variable in a sequence. This can be achieved with a multiplier effect when reading the code.


Crossing, we use the mint in the default does not install Ctags, so we need to manually install. The installation method is as follows:

    • 1. Check the ctags:

First use the command: which ctags verify that the ctags is installed in the system and that after executing the command, there is no

This indicates that the ctags is not installed in the system.

    • 2. Install Ctags:

Use the command: Apt-get install ctags to mount the ctags, after executing the command, get the following result:

Reading Package List ... Complete

Analyzing Dependency tree for Package

Reading status information ... Complete

Note, selecting ' exuberant-ctags ' instead of ' ctags '

The following "new" packages will be installed:

Exuberant-ctags

0 packages were upgraded, 1 new packages were installed, 0 packages were uninstalled, 388 packages were not upgraded.

You need to download a KB package.

308 KB of extra space is consumed after decompression.

Get: 1 http://archive.ubuntu.com/ubuntu/trusty-updates/main exuberant-ctags i386 1:5.9~svn20110310-7ubuntu0.1 [KB]

Download KB, time 2 seconds (47.4 kb/s)

Selecting previously unselected package exuberant-ctags.

(Reading Database ... The system currently has a total of 158,086 files and directories installed. )

Preparing to unpack .../exuberant-ctags_1%3a5.9~svn20110310-7ubuntu0.1_i386.deb ...

Unpacking exuberant-ctags (1:5.9~svn20110310-7ubuntu0.1) ...

Processing triggers for man-db (2.6.7.1-1UBUNTU1) ...

Setting Exuberant-ctags (1:5.9~svn20110310-7ubuntu0.1) ...

Update-alternatives:using/usr/bin/ctags-exuberant to Provide/usr/bin/ctags (ctags) in Auto mode

Update-alternatives:using/usr/bin/ctags-exuberant to Provide/usr/bin/etags (etags) in Auto mode

From the results, you can see that the Ctags has been successfully installed into the system.

    • 3. Confirm the installation:

Finally, we confirm that the installation was successful and that the method is the same as in step 1: which Ctags,

After this command, you get the following result:/usr/bin/ctags. This indicates that the CTAGS has been successfully installed in the system.

    • 4. Configure Ctags:

Add the following configuration information in the Vim configuration file (. vimrc): Set Tags=tags,set tags+=./tags

This configuration allows vim to find the tags file in the current directory at startup.


Crossing, through the method above, we have put Vim's plugin: Ctags installed. My side has ok,are you OK? O_o


You crossing, about the Vim plugin: Ctags, today, so far. In the back of the chapter, we will also say that the other VIM plug

Thing Do you want to know what plugins are in the future? and listen to tell.

Talk vim together (15th: Ctags of Vim plugin)

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.