add scala vim files
[cmccabe-etc] / .vim / plugin / cscope_settings.vim
1 " Make sure that vim was compiled with the '--enable-cscope' option
2 if has("cscope")
3     set cscopetag
4
5     " check cscope for definition of a symbol before checking ctags
6     set csto=0
7
8     " add any cscope database in current directory
9     "if filereadable("cscope.out")
10         "cs add cscope.out
11     "endif
12
13     " show msg when any other cscope db added
14     set cscopeverbose
15
16     nmap \s :cs find s <C-R>=expand("<cword>")<CR><CR>
17     nmap \g :cs find g <C-R>=expand("<cword>")<CR><CR>
18     nmap \c :cs find c <C-R>=expand("<cword>")<CR><CR>
19     nmap \t :cs find t <C-R>=expand("<cword>")<CR><CR>
20     nmap <C-\>e :cs find e <C-R>=expand("<cword>")<CR><CR>
21     nmap \f :cs find f <C-R>=expand("<cfile>")<CR><CR>
22     nmap <C-\>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
23     nmap \d :cs find d <C-R>=expand("<cword>")<CR><CR>
24 endif