From: Philippe Hürlimann
Date: Mon, 19 Dec 2016 22:30:59 +0000 (+0100)
Subject: cscope settings
X-Git-Url: https://git.hurlimann.org/?a=commitdiff_plain;h=29fbf7709d4690720004f2267f434dd570b806a4;p=vimfiles.git
cscope settings
---
diff --git a/vimrc b/vimrc
index 1e31fba..f75f10c 100644
--- a/vimrc
+++ b/vimrc
@@ -92,6 +92,29 @@ if has('gui_running')
set guioptions=aAceif
endif
+if has("cscope")
+ set csto=0
+ set cst
+ set nocsverb
+ if filereadable("cscope.out")
+ cs add cscope.out
+ elseif $CSCOPE_DB != ""
+ cs add $CSCOPE_DB
+ endif
+ set csverb
+
+ "s: Find this C symbol
+ "g: Find this definition
+ "d: Find functions called by this function
+ "c: Find functions calling this function
+ "a: Find places where this symbol is assigned a value
+ nnoremap