Add cscope support
David Blume

David Blume commited on 2017-12-30 22:50:55
Showing 1 changed files, with 11 additions and 1 deletions.

... ...
@@ -1,4 +1,4 @@
1
-" Version 2016-09-25.1 - php mods
1
+" Version 2017-12-30.1 - cscope 
2 2
 set nocompatible    " Use Vim defaults, forget compatibility with vi.
3 3
 set bs=2            " allow backspacing over everything in insert mode
4 4
 set wildmenu        " Allows command-line completion with tab
... ...
@@ -265,5 +265,15 @@ EOL
265 265
 vnoremap <C-h> :py EvaluateCurrentRange()<cr>
266 266
 endif
267 267
 
268
+" cscope
269
+if has("cscope")
270
+    set cscopetag  " Use both cscope and ctag for 'ctrl-]'
271
+    set csto=0     " 0=cscope first; 1=ctags first
272
+    if filereadable("cscope.out")
273
+        cs add cscope.out
274
+    endif
275
+    set cscopeverbose
276
+endif
277
+
268 278
 " Install Pathogen for this next call to work
269 279
 call pathogen#infect()
270 280