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.
Download the plugin to http://vim-taglist.sourceforge.net/this URL. Size is more than 50 KB, so
Can be downloaded to local soon.
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.
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)