Mercurial > dotfiles
changeset 304:50fbd059a6a1
More Vim customizations.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 29 Jul 2015 00:27:03 -0700 |
parents | 01ec865443b6 |
children | a333541a5c74 |
files | vim/vimrc |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/vim/vimrc Fri Jun 26 13:54:24 2015 -0700 +++ b/vim/vimrc Wed Jul 29 00:27:03 2015 -0700 @@ -386,6 +386,7 @@ " Tab navigation noremap <C-Tab> :tabnext<cr> noremap <C-S-Tab> :tabprevious<cr> +nnoremap <leader>t :tabnew<cr> " Window navigation nnoremap <C-up> :wincmd k<cr> @@ -460,9 +461,11 @@ nnoremap ]l :lnext<cr>zvzz nnoremap [l :lprevious<cr>zvzz -" Same with change list. +" Same with change and jump lists. nnoremap ]] g,zz nnoremap [[ g;zz +nnoremap ]j <C-I> +nnoremap [j <C-O> " Make the diff navigation also center things. nnoremap ]c ]czvzz @@ -487,6 +490,7 @@ " some of that `zvzz` stuff, but that's OK, the main point is to not mess up " the result selection window either. nnoremap <c-]> <c-]>zvzz +nnoremap <c-[> :pop<cr> nnoremap <c-\> <c-w>v<c-]>zMzvzz nnoremap <F9> :tprevious nnoremap <F10> :tnext