summaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-02-03 21:03:24 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-04-28 20:20:37 +0200
commit039d8dbc89b6fae77bc3fa1cac25e4c9d7f817c1 (patch)
treef30b09f5568047df16bbcb7be32fbb757577c310 /vimrc
parentb04c7526e1c43f31bd803726d91b791f4495c0ab (diff)
downloadvim-039d8dbc89b6fae77bc3fa1cac25e4c9d7f817c1.zip
vim-039d8dbc89b6fae77bc3fa1cac25e4c9d7f817c1.tar.gz
vimrc: add ctags and completion key maps
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 506914f..54d4678 100644
--- a/vimrc
+++ b/vimrc
@@ -75,6 +75,12 @@ inoremap <C-x> <C-X><C-]>
" Don't use Ex mode, use Q for formatting
map Q gq
+" to jump to a definition, <C-t> to jump back to the caller code
+map <C-v> g<C-]>
+
+" code completion
+inoremap <C-d> <C-X><C-]>
+
" Make p in Visual mode replace the selected text with the "" register.
vnoremap p <Esc>:let current_reg = @"<CR>gvs<C-R>=current_reg<CR><Esc>