X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=.vim%2Fplugin%2Fcscope_settings.vim;fp=.vim%2Fplugin%2Fcscope_settings.vim;h=86732b92985fdc2e4924586b3c5e8417de721989;hb=5d6b94b9c8525ea090df1a4eb449d15bbb82e779;hp=0000000000000000000000000000000000000000;hpb=f3df0006f5cfa5a311cf48eb56a66d8619f1bc35;p=cmccabe-etc diff --git a/.vim/plugin/cscope_settings.vim b/.vim/plugin/cscope_settings.vim new file mode 100644 index 0000000..86732b9 --- /dev/null +++ b/.vim/plugin/cscope_settings.vim @@ -0,0 +1,24 @@ +" Make sure that vim was compiled with the '--enable-cscope' option +if has("cscope") + set cscopetag + + " check cscope for definition of a symbol before checking ctags + set csto=0 + + " add any cscope database in current directory + if filereadable("cscope.out") + cs add cscope.out + endif + + " show msg when any other cscope db added + set cscopeverbose + + nmap \s :cs find s =expand("") + nmap \g :cs find g =expand("") + nmap \c :cs find c =expand("") + nmap \t :cs find t =expand("") + nmap e :cs find e =expand("") + nmap \f :cs find f =expand("") + nmap i :cs find i ^=expand("")$ + nmap \d :cs find d =expand("") +endif