Talk vim together (19th: taglist of vim plugin)

Source: Internet
Author: User
Tags tag name


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

Plug - ins.. This time, let's continue to talk about Vim's plugin, but we're talking about another plugin: TagList. All right, that's the thing.

The words go forward, and the words return to the positive. Let's talk about vim together!


Crossing, the so-called TagList is the source code in the tag list out. These tags include: variables, functions, and so on. TagList and Ctags

Unlike Cscope, it is a plug-in, not an application software. Let's start by talking about how to install TagList.


    • 1. Download the plugin:

Download the plugin to http://vim-taglist.sourceforge.net/this URL. Size is more than 50 KB, so

Can be downloaded to local soon.


    • 2. Install the plugin:

Unzip the downloaded compressed package. The Taglist.vim in the plugin directory is then copied to the Vim plugin directory, with

The body path is/usr/share/vim/vim74/plugin/. Because TagList is a plug-in, it only needs to be copied to

Plug-in directory can be. This is not the same as ctags and other plug-in installation methods.


    • 3. Using plugins:

Use Vim to open a source code file. In command mode, enter: Taglistopen. It will be on the left side of vim.

Create a new window. The window displays tag information such as variables and functions in the open source code file. Here are the specific

One.



Crossing can see the entire Vim window is divided into two parts, the right is the source code file, the left is the tag information in the file.

The light purple in the window is the tag name: Macro,struct,variable,function. Tag name below is the specific tag. For example,

You want to open a function that uses k,j to move up and down to the cursor, where the cursor is, and where it will be highlighted. Now the image is highlighted as a

A function called get_pkmap_entriesxxx. Pressing the O key here quickly jumps to the position of the function in the source code. Guys, look.

The officer now realizes that the TagList is strong.


Crossing can configure taglist according to their own habits. The configuration method is written in the Help file in detail and is not covered here. The configuration is dependent on

The configuration file of Vim can be modified according to the method in the Help file. For example, do you think using Tlistopen to open taglist inconvenient, you

It can be mapped to a shortcut key. This way, you can press the shortcut key to open the TagList.


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

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

Talk vim together (19th: taglist 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.