gvim cscope in windows
来源:互联网 发布:淘宝的盈利模式是什么 编辑:程序博客网 时间:2024/04/29 14:50
下载cscope15.6-win32.zip
编译好的cscope15.6-win32在这里下载:
http://linux.chinaunix.net/bbs/attachment.php?aid=177425
安装
-----------------------------------
安装很简单,只要将cscope的可执行文件放到PATH环境变量包含的目录中即可。
(1) 推荐Windows用户将上面下载到的cscope.exe与gvim.exe放在同一个目录下,如D:\Program Files\Vim\vim72下。
(2) "我的电脑" --> "属性" --> "高级" --> "环境变量" --> "系统变量"
PATH: D:\Program Files\Vim\vim72 (给环境变量PATH添加cscope.exe所在目录)
注销/重启后PATH即可生效。
(3) "开始" --> "运行" --> "cmd"
C:\Documents and Settings\Administrator>cscope -V
cscope: version 15.6. Compiled by MSLK(mslk.sa@gmail.com)
如果能看到cscope的版本好则说明安装成功。
(4) 为了方便地使用cscope,我们还需要下载cscope的键盘映射设置,这样就可以在gvim中简单地通过快捷键来使用cscope,而不必敲复杂的命 令了。键盘映射可以从这里下载:http://cscope.sourceforge.net/cscope_maps.vim。
将下载到的cscope_maps.vim放在gvim的插件目录里,如D:\Program Files\Vim\vimfiles\plugin中。Linux用户可以放在$HOME/.vim/plugin中。
建立符号数据库
-----------------------------------
(1) 我们假设我们要阅读的代码放在D:\src\myproject下。然后打开命令行,进入源代码所在的目录,为cscope建立搜索文件列表。在命令行中执行以下命令:
D:\soft\vxwork_src>dir /s /b *.c *.h > cscope.files
D:\soft\vxwork_src>cscope -b
执行结束后你可以在当前目录下发现cscope.out文件,这就是cscope建立的符号数据库。上面这个命令中,-b参数使得cscope不启动自带的用户界面,而仅仅建立符号数据库。
(2) 编辑D:\Program Files\Vim\_vimrc,添加如下内容。
cs a D:\soft\vxwork_src\cscope.out
如果你的源代码是C++,则可以将cpp等扩展名也加入到上面的命令中。
dir /s /b *.c *.h *cpp *.hpp > cscope.files
如果是Linux用户,则可以使用find命令实现同样的功能:
find $(pwd) -name "*.[ch]"
0 0
- gvim+cscope in windows
- gvim cscope in windows
- gvim cscope in windows
- 配置ctags cscope on gvim in windows
- Windows 上 gvim + cscope
- gvim windows cscope
- windows下gvim+ctags+cscope+taglist
- windows下gvim+ctags+cscope+taglist
- use cscope with gvim on windows
- gvim cscope
- cscope in Windows
- gvim+ctags in windows
- gvim+ctags in windows
- gvim中使用 cscope
- cscope and gvim
- Gvim Ctags Cscope
- gvim cscope使用
- Gvim+ctags+cscope(转载)
- 分享按钮代码二、
- Windows + Vim + Xdebug
- 一、用winmanager合并显示NERDTree和TagList
- 二、用winmanager合并显示NERDTree和TagList
- Http环境下的保持连接方式
- gvim cscope in windows
- php vim 配置
- vim 插件推荐
- restrict 详解
- 处理jquery 与其他js $符号冲突问题
- 互联网新战场——智能电视的产品设计-李时斌
- Iframe高度自适应(兼容IE/Firefox、同域/跨域)
- debian (lenny) 下编程工具vim+ctags+taglist的配置
- debian 显示用户输入的路径