cscope+ctags of vimrc
Posted 吾乃世间奇才
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了cscope+ctags of vimrc相关的知识,希望对你有一定的参考价值。
if has("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-f> :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-c> :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-0>d :cs find d <C-R>=expand("<cword>")<CR><CR>
nmap T :!`cscope-indexer -r && ctags -R` <CR><CR> :cs reset<CR><CR>
nmap t :!git diff % <CR>
noremap <expr>L Test()
map Y yiw
map E viwpyiw
set autoindent
colorscheme default
function! Test()
let b = ": vert diffsplit /home/risun/tmp/jio/wst_8826/sdk/verify/" . bufname("") . "\\r"
return b
endfunction
以上是关于cscope+ctags of vimrc的主要内容,如果未能解决你的问题,请参考以下文章
ruby Ruby脚本为ctags和cscope创建文件。保存文件以调用文件夹。
将Vim改造为强大的IDE—Vim集成Ctags/Taglist/Cscope/Winmanager/NERDTree/OmniCppComplete(有图有真相)(转)