Vim:Plugin:Cscope
cscope vim 플러그인에 대하여 정리한다.
How to use
If you are using VIM, you can try quick fix
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
- Theory of cscope, ctags, & vim
- cscope.vim : create cscope database and connect to existing proper database automatically
- Browsing Source Code in Linux – Vim/Cscope
- ctag/cscop 사용법
- 리눅스 커널 개발을 위한 Vim + ctags + cscope + taglist 설정
References
-
Vi_-_how_to_install_ctags,_cscope.pdf ↩