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