少平

导航

我的vimrc(更新于2013-05-20)

 

 

cscope

" cscope usage
" cscope -Rbq R: recursive; b: don't show UI; q: create index file

if
has("cscope") " display the last N components of the file's path set cspc=4 " use cscope when CTRL-] close with :set nocst set cst " use quickfix when cscope " set cscopequickfix=s-,c-,d-,i-,t-,e- " find symbol nmap css :cs find s <C-R>=expand("<cword>")<CR><CR> " find definition nmap csg :cs find g<C-R>=expand("<cword>")<CR><CR> " find I invoke what nmap csd :cs find d <C-R>=expand("<cword>")<CR><CR> " find what invoke me nmap csc :cs find c <C-R>=expand("<cword>")<CR><CR> " find string nmap cst :cs find t <C-R>=expand("<cword>")<CR><CR> " find egrep nmap cse :cs find e <C-R>=expand("<cword>")<CR><CR> " find file nmap csf :cs find f <C-R>=expand("<cfile>")<CR><CR> " find what inclue this file nmap csi :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR> endif

 

posted on 2013-05-20 21:24  少平  阅读(108)  评论(0)    收藏  举报