A: Vundle 配置
1:
# git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
2:
# cat ~/.vimrc
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
call vundle#end()
filetype plugin indent on
3:
在vim中执行
:PluginInstall
B: ctags工具
1:
# apt-get install ctags -y
2:
# ctags -R .
3:在vim中执行
:set tags=ctags
C cscope 工具
1:
# apt-get install cscope -y
2:
# cscope -Rbq
上述的命令会生成3个文件:cscope.in.out ,cscope.out ,cscope.po.out。其中cscope.out是基本符合的索引,cscope.in.out,cscope.po.out两个文件是使用-q的选项生成的,用于加快cscope索引的速度
3:在vim中执行
:cscope add cscope.out
使用命令:cs-h,可以查看cscope使用说明
。。。。。。待续