davee_x

导航

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

posted on 2016-09-09 09:35  Wigde.Xiao  阅读(159)  评论(0编辑  收藏  举报