summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-04-28 14:47:02 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-04-28 14:47:02 +0200
commitb04c7526e1c43f31bd803726d91b791f4495c0ab (patch)
treecfe0e1d29f404c3f764bd83bc8a74d7e899d9f0c
parentecc76d83bc0d264945953e116ba4854bab96fef3 (diff)
downloadvim-b04c7526e1c43f31bd803726d91b791f4495c0ab.zip
vim-b04c7526e1c43f31bd803726d91b791f4495c0ab.tar.gz
vimrc: add tags shortcuts
-rw-r--r--vimrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 79ea9fb..506914f 100644
--- a/vimrc
+++ b/vimrc
@@ -68,6 +68,10 @@ nmap <leader>l :set list!<CR>
" remap vim-comentary : nmap \\ <Plug>Commentary
map <C-c> \\\
+" jump to definition, <C-t> to jump back to the call
+nmap <C-y> g<C-]>
+inoremap <C-x> <C-X><C-]>
+
" Don't use Ex mode, use Q for formatting
map Q gq