• cscope


    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>  

    有时候,不小心知道了一些事,才发现自己所在乎的事是那么可笑。
  • 相关阅读:
    Linux下mysql使用systemctl restart mysqld命令失败
    Linux环境下mysql报错:bash: mysql: command not found 的解决方法
    Linux查看mysql是否启动的命令
    启动MySQL5.7时报错:initialize specified but the data directory has files in it. Aborting.
    ARM64架构下面安装mysql5.7.22
    Python3.6打开EAIDK-610开发板(计算机通用)摄像头拍照并保存
    Python的几种主动结束程序方式
    aarch64架构下安装tensorflow详细过程
    python代码在linux终端中执行报错:Unable to init server: Could not connect: Connection refused
    red hat 报错:apt-get:找不到命令
  • 原文地址:https://www.cnblogs.com/axjlxy/p/14757793.html
Copyright © 2020-2023  润新知