首页 > 其他 > 详细

cscope

时间:2021-05-12 00:01:55      阅读:29      评论:0      收藏:0      [点我收藏+]

if has("cscope")
 31     set csprg=/usr/bin/cscope
 32     set csto=1
 33     set cst
 34     set nocsverb                                                                                                                                                                                        
 35 " add any database in current directory
 36     if filereadable("cscope.out")
 37         cs add cscope.out
 38     endif
 39     set csverb
 40 endif
 41
 42 nmap <C-@>s :cs find s <C-R>=expand("<cword>")<CR><CR>
 43 nmap <C-@>g :cs find g <C-R>=expand("<cword>")<CR><CR>
 44 nmap <C-@>c :cs find c <C-R>=expand("<cword>")<CR><CR>
 45 nmap <C-@>t :cs find t <C-R>=expand("<cword>")<CR><CR>
 46 nmap <C-@>e :cs find e <C-R>=expand("<cword>")<CR><CR>
 47 nmap <C-@>f :cs find f <C-R>=expand("<cfile>")<CR><CR>
 48 nmap <C-@>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
 49 nmap <C-@>d :cs find d <C-R>=expand("<cword>")<CR><CR>

 

if has("cscope")

    set cscopetag

    set csto=0

    if filereadable("cscope.out")
    cs add cscope.out 
    elseif $CSCOPE_DB != ""
    cs add $CSCOPE_DB
    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> 

if has("cscope")

    set cscopetag

    set csto=0

    if filereadable("cscope.out")
    cs add cscope.out  
    elseif $CSCOPE_DB != ""
    cs add $CSCOPE_DB
    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>  

cscope

原文:https://www.cnblogs.com/axjlxy/p/14757793.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!