ctags, cscope, taglist
来源:互联网 发布:淘宝卖家怎么提高销量 编辑:程序博客网 时间:2024/06/05 20:59
1, ctags:
sudo apt-get install ctags
vimrc中设置:
"--ctags setting--
" 按下F5重新生成tag文件,并更新taglist
map <F5> :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<CR><CR> :TlistUpdate<CR>
imap <F5> <ESC>:!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<CR><CR> :TlistUpdate<CR>
set tags=tags
set tags+=./tags "add current directory's generated tags file
set tags+=/home/lictong/project/linux/tags
2,cscope
sudo apt-get install cscope
vimrc设置:
"--cscope setting--
set cscopequickfix=s-,c-,d-,i-,t-,e-
cs add /home/lictong/project/linux/cscope.out /home/lictong/project/linux
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>
" nmap <C-@>s <C-W><C-S> :cs find s <C-R>=expand("<cword>")<CR><CR>
nmap <C-@>s :scs find s <C-R>=expand("<cword>")<CR><CR>
nmap <C-@>g :scs find g <C-R>=expand("<cword>")<CR><CR>
nmap <C-@>c :scs find c <C-R>=expand("<cword>")<CR><CR>
nmap <C-@>t :scs find t <C-R>=expand("<cword>")<CR><CR>
nmap <C-@>e :scs find e <C-R>=expand("<cword>")<CR><CR>
nmap <C-@>f :scs find f <C-R>=expand("<cfile>")<CR><CR>
nmap <C-@>i :scs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
nmap <C-@>d :scs find d <C-R>=expand("<cword>")<CR><CR>
nmap <C-@><C-@>s :vert scs find s <C-R>=expand("<cword>")<CR><CR>
nmap <C-@><C-@>g :vert scs find g <C-R>=expand("<cword>")<CR><CR>
nmap <C-@><C-@>c :vert scs find c <C-R>=expand("<cword>")<CR><CR>
nmap <C-@><C-@>t :vert scs find t <C-R>=expand("<cword>")<CR><CR>
nmap <C-@><C-@>e :vert scs find e <C-R>=expand("<cword>")<CR><CR>
nmap <C-@><C-@>f :vert scs find f <C-R>=expand("<cfile>")<CR><CR>
nmap <C-@><C-@>i :vert scs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
nmap <C-@><C-@>d :vert scs find d <C-R>=expand("<cword>")<CR><CR>
3,taglist
下载:http://www.vim.org/scripts/script.php?script_id=273
1.
unzip taglist_46.zip
解压后出现两个文件夹,doc和plugin,将其拷贝到相应的目录下即可
1.
sudo cp doc/taglist.txt /usr/share/vim/vim73/doc/
2.
sudo cp plugin/taglist.vim /usr/share/vim/vim73/plugin/
修改vim配置文件
1.
sudo vim /etc/vim/vimrc
在最后添加如下内容
1.
""
""
""
""
""
""
""
""
"Taglist设置"
""
""
""
""
""
""
""
""
let Tlist_Auto_Open =
1
let Tlist_Ctags_Cmd =
'/usr/bin/ctags'
let Tlist_Show_One_File =
1
let Tlist_Exit_OnlyWindow =
1
- vim+ctags+taglist+cscope
- vim + ctags + cscope+taglist
- ctags+taglist+cscope
- vim+ctags+cscope+taglist
- vim+Taglist+cscope+ctags
- ctags+taglist+cscope
- Ctags + taglist + cscope
- vim+ctags+taglist+cscope
- vim + cscope + ctags + taglist
- ctags, cscope, taglist
- vim + ctags + cscope + taglist
- ctags+taglist+cscope
- vim cscope+ctags+taglist
- vim + ctags + taglist + cscope + cppcomplete
- ubuntu vim+ctags+taglist+cscope
- gvim配置cscope+ctags+taglist
- vim+ctags+cscope+taglist+nerdtree
- vim+ctags+taglist+cscope+cppcomplete+global
- You can Solve a Geometry Problem too
- hdu 4952 Number Transformation 多校八 数论
- Crane(线段树)
- 安装及使用grunt
- AndroidAnnotations框架
- ctags, cscope, taglist
- HTML5边玩边学(3):像素和颜色
- 如何测试sql语句性能,提高执行效率,sql2008
- 知乎 孙志超 未来
- ubuntu下配置手动安装软件的路径
- Qt4 msbuild microsoft cpp v4 0 microsoft cppcommon targets 151 5 error msb6006 cmd exe已退出代码为1
- java7语法新特性
- POJ 3984-迷宫问题(BFS+回溯路径)
- Yii girdview 時間戳做查詢時