Vim Configuration--taglist

Source: Internet
Author: User
Tags prototype definition

Next, configure TagList.

First download here:

http://www.vim.org/scripts/script.php?script_id=273

I downloaded the latest version, 4.6

After downloading, unzip to ~/.vim


Then open it in your own working directory or create a new vim

(Mine is test.c)

Then enter in the bottom bar mode:

: Helptags ~/.vim/doc

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/81/FC/wKioL1dGuNeDQX9oAAARkZ1vJw8249.png "title=" 3.png " alt= "Wkiol1dgunedqx9oaaarkz1vjw8249.png"/>

A help label should be generated after entering this line of command

Now enter in the bottom bar mode:

: Help Taglist.txt

You'll see Help.

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/81/FD/wKiom1dGuLuiBl4OAADximdMxPM431.png "title=" 2.png " alt= "Wkiom1dguluibl4oaadximdmxpm431.png"/>


Next, in ~/.VIMRC (open it with vim), add:

Let Tlist_show_one_file=1let tlist_exit_onlywindow=1

Once added, use vim to open your own code,

Bottom Bar Mode input:

Tlist

You'll see one more interface.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/81/FC/wKioL1dGvEOipQsEAABhdMlVvtM810.png "title=" 3.png " alt= "Wkiol1dgveoipqseaabhdmlvvtm810.png"/>

The new interface displays the functions you have defined.

I add a function, and the interface becomes like this

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/81/FC/wKioL1dGvYGxR2PNAABHULVB5Qc721.png "title=" 4.png " alt= "Wkiol1dgvygxr2pnaabhulvb5qc721.png"/>

At this point, position the cursor to the right, hit enter at the specified function, and the cursor will jump to the location of the position function.


In the current interface mode, the following commands are commonly used:

 <CR>           jumps to the position defined by the tag under the cursor, Double-click the tag function with the mouse (but to open this feature in the VIMRC file)  o               in a newly opened window displays the cursor under the tag<space>        display cursor under the tag's prototype definition u               update tags    in the TagList window            change sort order, toggle between sort by name and sort by order x              taglist window zoom in and zoom out for longer tag+               open a folding, with zo-               Fold the tag together with the zc*               Open all folds, with zr=              Fold all the tags together with the ZM[[&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&Nbsp;      jumps to the previous file]]              Skip to the next file q              close taglist window <f1 >           Show Help


Vim Configuration--taglist

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.