aboutsummaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc14
1 files changed, 14 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index e3219a0..83357bf 100644
--- a/vimrc
+++ b/vimrc
@@ -97,4 +97,18 @@ if g:plugins_enabled
Bundle 'tkztmk/vim-vala'
endif
+if has("cscope")
+ set cst
+ set csverb
+ set cscopequickfix=s-,c-,d-,i-,t-,e-
+ nmap <C-\>s :cs find s <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-\>g :cs find g <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-\>c :cs find c <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-\>t :cs find t <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-\>e :cs find e <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-\>f :cs find f <C-R>=expand("<cfile>")<CR><CR>
+ nmap <C-\>i :cs find i <C-R>=expand("<cfile>")<CR>$<CR>
+ nmap <C-\>d :cs find d <C-R>=expand("<cword>")<CR><CR>
+endif
+
"set guifont=Liberation\ Mono\ for\ Powerline\ 11