summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Toso <victortoso@redhat.com>2015-03-09 10:39:16 +0100
committerVictor Toso <victortoso@redhat.com>2015-03-09 10:39:16 +0100
commit49311e350f52d5e59c656f7a8a5fd6abea077897 (patch)
tree5372574f2db9547b9b464e681c7583bcddd63a9e
parentc9fe2a8282bb11946caa351bce9a8a91c0ca4c2e (diff)
vimrc: add map to @ (repetition key)
-rw-r--r--vimrc13
1 files changed, 8 insertions, 5 deletions
diff --git a/vimrc b/vimrc
index 15a2cd5..a7e90a7 100644
--- a/vimrc
+++ b/vimrc
@@ -46,6 +46,10 @@ filetype plugin indent on
" ----------------------------------------------------------------------------
" ------------------ My bindings ---------------------------------------------
" ----------------------------------------------------------------------------
+
+" using @ is painful
+nmap \\ @
+
nmap >> <C-]>
nmap << <C-t>
@@ -65,9 +69,11 @@ au TabLeave * let g:lasttab = tabpagenr()
" ------------------ CSCOPE --------------------------------------------------
" ----------------------------------------------------------------------------
if has("cscope")
- set csprg=/bin/cscope
+ set cscopeprg=/bin/cscope
set cscopetag
- set csto=0
+ set cscopetagorder=0 " cscope db before tags
+ set nocscopeverbose " *dont* show msg when any other cscope db added
+
" add any database in current directory
if filereadable("cscope.out")
cs add cscope.out
@@ -75,9 +81,6 @@ if has("cscope")
cs add $CSCOPE_DB
endif
- "show msg when any other cscope db added
- set cscopeverbose
-
" 's' symbol: find all references to the token under cursor
" 'g' global: find global definition(s) of the token under cursor
" 'c' calls: find all calls to the function name under cursor