"======================================================================================================================= " CSCOPE: http://vim.wikia.com/wiki/Cscope "======================================================================================================================= augroup MAX_CSCOPE if has('cscope') " compiled with cscope support? set cscopetag " CTRL-] uses cscope first, then ctags set cscopeverbose if has('quickfix') set cscopequickfix=s+,c+,d+,i+,t+,e+ endif if has('menu') 1001menu &Cscope.find.c\ symbol \s \ :cscope find s <:cR> 1001menu &Cscope.find.definition \g \ :cscope find g <:cR> 1001menu &Cscope.find.functions\ called\ by\ this \d \ :cscope find d <:cR> 1001menu &Cscope.find.functions\ calling\ this \c \ :cscope find c <:cR> 1001menu &Cscope.find.text\ string \t \ :cscope find t <:cR> 1001menu &Cscope.find.egrep\ pattern \e \ :cscope find e <:cR> 1001menu &Cscope.find.this\ file \f \ :cscope find f <:cR> 1001menu &Cscope.find.files\ including\ this\ file \i \ :cscope find i <:cR> 1001menu &Cscope.find.places\ where\ this\ symbol\ is\ assigned\ a\ value \a \ :cscope find a <:cR> 1001menu &Cscope.-Sep1- \ : 1001menu &Cscope.create\ and\ add\ database \ :cscope kill -1:execute '!find -type f -regex ".*\.\(c\\|h\\|cpp\\|cxx\\|hh\\|hpp\\|hxx\)$" cscope -i- -b -q -v':cscope add . 1001menu &Cscope.-Sep2- \ : 1001menu &Cscope.add\ \. \ :cscope add . 1001menu &Cscope.show \ :cscope show 1001menu &Cscope.reset \ :cscope reset endif endif augroup END " MAX_CSCOPE