ctags 、 cscope vim
来源:互联网 发布:3.35 魔兽数据库 编辑:程序博客网 时间:2024/06/06 03:55
一。ctags
1.安装ctags
2.在source 目录下执行 ctags -R,会生成一个tags 文件
3.在.vimrc 中加入 set tags=/xxx/xx/tags
此时在vim 中就可 使用名 :tag symbol
tag 用法
Ctrl+ ]跳到光标所在函数或者结构体的定义处
Ctrl+ T返回查找或跳转
:ts xxx 列出包含xxx 的文件供选择。
二cs
1.安装csope
2.在source 目录下执行 cscope -Rbkq 生成一些文件【 cscope.in.out cscope.out cscope.po.out】
3.在 .vimrc 中加入copecs add /home/xxxx/cscope.out /home/xxx/
此时可以在vim 中使用 cs 命令
cs help
:
add : Add a new database (Usage: add file|dir [pre-path] [flags])
find : Query for a pattern (Usage: find c|d|e|f|g|i|s|t name)
c: Find functions calling this function
d: Find functions called by this function
e: Find this egrep pattern
f: Find this file
g: Find this definition
i: Find files #including this file
s: Find this C symbol
t: Find assignments to
help : Show this message (Usage: help)
kill : Kill a connection (Usage: kill #)
reset: Reinit all connections (Usage: reset)
show : Show connections (Usage: show)
我只使用过 cs find
ctags + cscope 可以让我们在vim 中轻松阅读代码。
- 使用Vim + Cscope/Ctags|Vim,Cscope,Ctags
- Vim + Cscope/Ctags
- VIM + CTags/CScope
- Vim + Cscope/Ctags
- vim+ctags+taglist+cscope
- VIM+ctags+cscope用法
- cscope+vim+ctags
- vim + ctags + cscope+taglist
- vi/Vim + Cscope/Ctags
- vim + ctags + cscope
- Vim+Ctags+Cscope配置
- 使用 VIM+Ctags+Cscope
- vi/Vim + Cscope/Ctags
- VIM+ctags+cscope用法
- vim + ctags + cscope
- vim+ctags+cscope+taglist
- Vim cscope ctags tags
- vi/Vim + Cscope/Ctags
- win32 sdk下调用webbrowser控件
- 栈操作
- Eclipse 插件最牛的TOP30
- WinCE板级支持包(BSP)开发学习开篇
- centos 安装 erlang
- ctags 、 cscope vim
- linux 下 /bin /sbin 的区别及重要目录
- JDBC数据库编程
- Access 2007 宝典--学习笔记3(查询)
- oracle dmp文件导入 与 blob图片导出
- 博弈-sg函数的原理和优化(hdu-1536)
- Android之列表对话框
- jQuery基础 -- 添加/移除CSS类
- Android 各版本的 support vx包相关笔记