Skip to content

Vim:Plugin:Cscope

cscope vim 플러그인에 대하여 정리한다.

How to use

If you are using VIM, you can try quick fix

:se cscopequickfix=s-,c-,d-,i-,t-,e-

Navigate next or previous result with :cn, :cp

Use :cw to display cscope search result.

Sample keymap

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>

See also

Favorite site

References


  1. Vi_-_how_to_install_ctags,_cscope.pdf