Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Jump to tag in new tab with Ctrl-[ in Vim
  • Loading branch information
gsamokovarov committed Mar 30, 2015
1 parent e683c47 commit bcb4136
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .vimrc
Expand Up @@ -154,6 +154,11 @@ function! JumpToTagInSplit()
execute "normal! \<c-w>s\<c-]>mzzMzvzz15\<c-e>"
execute "keepjumps normal! `z"
endfunction

function! JumpToTagInTab()
execute "normal! \<c-w>\<c-]>\<c-w>\TmzzMzvzz15\<c-e>"
execute "keepjumps normal! `z"
endfunction
" }}}

" {{{ Builtin Settings
Expand Down Expand Up @@ -717,6 +722,7 @@ nmap <Down> n
nmap <Right> n
nnoremap <c-]> :silent! call JumpToTag()<cr>
nnoremap <c-[> :silent! call JumpToTagInTab()<cr>
nnoremap <c-\> :silent! call JumpToTagInSplit()<cr>
" Uppercase whole words in INSERT mode. I rarely remember to remove the whole
Expand Down

0 comments on commit bcb4136

Please sign in to comment.