ctags最常用的步骤:
1. 给工程建立index: $ctags -R *
2. 打开某个函数/变量: $vim -t <function/var name>
vim −t tag Start vi and position the cursor at the file and line where "tag" is defined.
3. 跳到函数实现: Ctrl + ];跳回Ctrl+t
Ctrl-] Find the tag under the cursor.
Ctrl-T Return to previous location before jump to tag (not widely implemented).
4. 显示函数/变量
:ta tag Find a tag.
2008-12-27
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment