From 29fbf7709d4690720004f2267f434dd570b806a4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Philippe=20H=C3=BCrlimann?= Date: Mon, 19 Dec 2016 23:30:59 +0100 Subject: [PATCH] cscope settings --- vimrc | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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 s :cscope find s + nnoremap g :cscope find g + nnoremap d :cscope find d + nnoremap c :cscope find c + nnoremap a :cscope find a +endif + nnoremap :TagbarToggle nnoremap :%s/\C\<\>/ -- 2.51.2