14.06.2014 Views

vim 101 hacks

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Buyer: xiujuan lu (luxiujuan@gmail.com)<br />

Transaction ID: 85W16630AD8515549<br />

Vim <strong>101</strong> Hacks<br />

www.thegeekstuff.com<br />

Archive: ~/taglist.zip<br />

inflating: plugin/taglist.<strong>vim</strong><br />

inflating: doc/taglist.txt<br />

Enable the plugin by adding following line to the ~/.<strong>vim</strong>rc<br />

$ <strong>vim</strong> ~/.<strong>vim</strong>rc<br />

filetype plugin on<br />

Prerequisite: ctags should be installed to use taglist plugin. But it is not a<br />

must to generate the tag list manually by ctags command for using taglist<br />

plugin.<br />

Usage 1: Open the Tag List Window in Vim using :TlistOpen<br />

# <strong>vim</strong> mycprogram.c<br />

:TlistOpen<br />

From the Vim editor, execute :TlistOpen as shown above, which opens the tag<br />

list window with the tags of the current file as shown in the figure below.<br />

45

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!