Mercurial > dotfiles
comparison vim/vimrc @ 304:50fbd059a6a1
More Vim customizations.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 29 Jul 2015 00:27:03 -0700 |
parents | 01ec865443b6 |
children | a333541a5c74 |
comparison
equal
deleted
inserted
replaced
303:01ec865443b6 | 304:50fbd059a6a1 |
---|---|
384 noremap <end> g<end> | 384 noremap <end> g<end> |
385 | 385 |
386 " Tab navigation | 386 " Tab navigation |
387 noremap <C-Tab> :tabnext<cr> | 387 noremap <C-Tab> :tabnext<cr> |
388 noremap <C-S-Tab> :tabprevious<cr> | 388 noremap <C-S-Tab> :tabprevious<cr> |
389 nnoremap <leader>t :tabnew<cr> | |
389 | 390 |
390 " Window navigation | 391 " Window navigation |
391 nnoremap <C-up> :wincmd k<cr> | 392 nnoremap <C-up> :wincmd k<cr> |
392 nnoremap <C-down> :wincmd j<cr> | 393 nnoremap <C-down> :wincmd j<cr> |
393 nnoremap <C-left> :wincmd h<cr> | 394 nnoremap <C-left> :wincmd h<cr> |
458 nnoremap ]q :cnext<cr>zvzz | 459 nnoremap ]q :cnext<cr>zvzz |
459 nnoremap [q :cprevious<cr>zvzz | 460 nnoremap [q :cprevious<cr>zvzz |
460 nnoremap ]l :lnext<cr>zvzz | 461 nnoremap ]l :lnext<cr>zvzz |
461 nnoremap [l :lprevious<cr>zvzz | 462 nnoremap [l :lprevious<cr>zvzz |
462 | 463 |
463 " Same with change list. | 464 " Same with change and jump lists. |
464 nnoremap ]] g,zz | 465 nnoremap ]] g,zz |
465 nnoremap [[ g;zz | 466 nnoremap [[ g;zz |
467 nnoremap ]j <C-I> | |
468 nnoremap [j <C-O> | |
466 | 469 |
467 " Make the diff navigation also center things. | 470 " Make the diff navigation also center things. |
468 nnoremap ]c ]czvzz | 471 nnoremap ]c ]czvzz |
469 nnoremap [c [czvzz | 472 nnoremap [c [czvzz |
470 | 473 |
485 " in a split window where everything is folded except what you need to see. | 488 " in a split window where everything is folded except what you need to see. |
486 " Note that if a tag search yield multiple possible results, we will still run | 489 " Note that if a tag search yield multiple possible results, we will still run |
487 " some of that `zvzz` stuff, but that's OK, the main point is to not mess up | 490 " some of that `zvzz` stuff, but that's OK, the main point is to not mess up |
488 " the result selection window either. | 491 " the result selection window either. |
489 nnoremap <c-]> <c-]>zvzz | 492 nnoremap <c-]> <c-]>zvzz |
493 nnoremap <c-[> :pop<cr> | |
490 nnoremap <c-\> <c-w>v<c-]>zMzvzz | 494 nnoremap <c-\> <c-w>v<c-]>zMzvzz |
491 nnoremap <F9> :tprevious | 495 nnoremap <F9> :tprevious |
492 nnoremap <F10> :tnext | 496 nnoremap <F10> :tnext |
493 | 497 |
494 " Keep search matches in the middle of the window. | 498 " Keep search matches in the middle of the window. |