vim,Tlist使用要点

This item was filled under [ 一步一步学习中 ]

1、在查看源码前,需使用ctags生成函数和变量信息文件tags
#cd test
#ctags -R
#ls tags
tags
#vim test.c
2、在Vim下使用TlistToggle 或者说Tlist命令切换耿函数列表开关,按住ctrl键不放同时再按两下w键(^WW),在编辑区与tags区切换,在tags区使用方向键选择函数,再回车键就会在编辑区找到函数定义。
如果有tags区选择了不是打开程序中函数,可以用ctrl+]查看,按ctrl+O返回到原文件。

Bookmark and Share
Tagged with: [ , , ]

喜欢这篇文章的人还喜欢。。。

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Comment