23,116
社区成员
发帖
与我相关
我的任务
分享
cs f t xxxxx
if filereadable("/aaa/bbb/ccc/cscope.out")
cs add /aaa/bbb/ccc/cscope.out
endif
if filereadable("/aaa/bbb/ddd/cscope.out")
cs add /aaa/bbb/ddd/cscope.out
endif
if filereadable("/aaa/bbb/eee/cscope.out")
cs add /aaa/bbb/eee/cscope.out
endif
if has("cscope")
nmap <C-\>c :cs find c <C-R>=expand("<cword>")<CR><CR>
nmap <C-\>d :cs find d <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-\>g :cs find g <C-R>=expand("<cword>")<CR><CR>
nmap <C-\>i :cs find i <C-R>=expand("<cfile>")<CR><CR>
nmap <C-\>s :cs find s <C-R>=expand("<cword>")<CR><CR>
nmap <C-\>t :cs find t <C-R>=expand("<cword>")<CR><CR>
if filereadable("cscope.out")
cs add cscope.out
"这里可以写绝对路径
endif
endif