vim + ctags synopsis
时间:2009-05-16 来源:zhangjiakouzf
vim + ctags
1. make the "tags" file: for c++: ctags -R --language-force=c++ --c++-types=+px --extra=+q
for c : ctags -R --c-types=+px 2. use "vim -t <a tag name>" for testing(note. the current directory must contain the "tags" file ),
if you only want some simple function , there are enough.
3. set some vim environment variable for advanced functions 1. Include other tags file to look up
:set tags=./tags,./../tags,./*/tags 4. OK ,that's all, Enjoy!! 5. you can use the taglist with ctags together. download "taglist" and install it.
1. make the "tags" file: for c++: ctags -R --language-force=c++ --c++-types=+px --extra=+q
for c : ctags -R --c-types=+px 2. use "vim -t <a tag name>" for testing(note. the current directory must contain the "tags" file ),
if you only want some simple function , there are enough.
3. set some vim environment variable for advanced functions 1. Include other tags file to look up
:set tags=./tags,./../tags,./*/tags 4. OK ,that's all, Enjoy!! 5. you can use the taglist with ctags together. download "taglist" and install it.
相关阅读 更多 +