Pages

Thursday, June 21, 2012

vim Function List


Install ctags
yum install ctags
Download and install vim taglist
Download taglist _45.zip from webpage http://vim.sourceforge.net/scripts/script.php?script_id=273
Unzip
unzip taglist_45.zip
Move plugin and doc to ~/.vim/
mv plugin doc ~/.vim/
Add "map <f9> :Tlist<CR>" to "/etc/vimrc"
echo "map <f9> :Tlist<CR>" >> /etc/vimrc

Use ctags in working directory
ctags -R *.c *.cpp *.h
Edit your source file
vim xxx.cpp

Toggle function list
Press <F9>

No comments:

Post a Comment