vim配置

if has("cscope")
" set cscopequickfix=s-,c-,d-,i-,t-,e-
set cscopetag
set csto=1
set cst
set nocsverb
if filereadable("cscope.out")
cs add cscope.out
endif
endif
"set tags=./tags;,tags;
set tags=./tags;~

nmap <C-> :cs find c =expand("")
nmap <C->s :cs find s =expand("")
nmap <C-
>g :cs find g =expand("")
nmap <C->c :cs find c =expand("")
nmap <C-
>t :cs find t =expand("")
nmap <C->e :cs find e =expand("")
nmap <C-
>f :cs find f =expand("")
nmap <C->i :cs find i ^=expand("")$
nmap <C-
>d :cs find d =expand("")
nmap <C-_>a :cs find a =expand("")

ctags --kinds-c=-m -R --exclude=tools --exclude-exception=tools/xx --languages=c

posted @ 2025-12-23 14:29  春知夏  阅读(3)  评论(0)    收藏  举报