vimrc

set number
set cursorline
set hlsearch
colorscheme molokai

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>
endif

  

posted on 2025-06-04 09:18  爱新觉罗玄烨  阅读(9)  评论(0)    收藏  举报

导航