Vim + Cscope 阅读 Linux kernel
2015-06-14 10:13
344 查看
1. 安装 cscope
2. 生成索引文件
3. 配置vim
sudo apt-get install cscope
2. 生成索引文件
cd linux-3.8.13 make xxx-config make cscope
3. 配置vim
if has("cscope") set csprg=/usr/local/bin/cscope set csto=0 set cst set nocsverb " add any database in current directory if filereadable("cscope.out") cs add cscope.out " else add database pointed to by environment elseif $CSCOPE_DB != "" cs add $CSCOPE_DB endif set csverb endif nmap <C-\>s :cs find s <C-R>=expand("<cword>")<CR><CR> nmap <C-\>g :cs find g <C-R>=expand("<cword>")<CR><CR> nmap <C-\>c :cs find c <C-R>=expand("<cword>")<CR><CR> nmap <C-\>t :cs find t <C-R>=expand("<cword>")<CR><CR> nmap <C-\>e :cs find e <C-R>=expand("<cword>")<CR><CR> nmap <C-\>f :cs find f <C-R>=expand("<cfile>")<CR><CR> nmap <C-\>i :cs find i <C-R>=expand("<cfile>")<CR>$<CR> nmap <C-\>d :cs find d <C-R>=expand("<cword>")<CR><CR>
相关文章推荐
- Linux for github
- Linux 命令记载
- Linux下的快捷技巧大全(ubuntu)
- Linux系统串口接收数据编程
- [转]linux 驱动中insmod与mknod各自的作用
- linux设备模型之kobject
- 高效Linux用户需要了解的命令
- 学习杂记linux
- linux图形界面
- linux hello world2
- linux hello world 1
- 在CentOS6.3上编译安装git 1.8
- linux设备模型(一)
- linux系统中交换区间(swap file)的解释
- CentOS的安装,win7系统的引导恢复
- 12 Linux Which Command, Whatis Command, Whereis Command Examples
- <六> Linux 的文件权限与目录配置
- Linux上的下载软件uGet
- dos系统和unix系统的文件格式区别
- Linux 破解root用户密码