vim ~/.vimrc
如下:
满足cscope快速查找,ctrl + \ + ‘t/g/s/..'
cscope -Rbkq (cs find s/g/t ... )
ctags -R (ts: )
set laststatus=2
set hlsearch
"set cursorline
"set cursorcolumn
"hi Cursorline clr=darkgreen
"hi CursorLine ctermbg=darkgreen ctermfg=white guibg=darkred guifg=white
"set nu
if has("cscope")
set csprg=/usr/bin/cscope
set csto=1
set cst
set nocsverb
" add any database in current directory
if filereadable("cscope.out")
cs add cscope.out
endif
set csverb
endif
set cscopeverbose
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>