首页 > 代码库 > ctags and vim

ctags and vim

1,源码目录下第归检索.

ctags -R *

2,搜索tag并用vim打开:

vim -t <tag>

3,在vim 下的一些操作:

Keyboard command

Action

Ctrl-]

Jump to the tag underneath the cursor

:ts <tag> <RET>

Search for a particular tag

:tn

Go to the next definition for the last tag

:tp

Go to the previous definition for the last tag

:ts

List all of the definitions of the last tag

Ctrl-t

Jump back up in the tag stack

ctags and vim