comparison vim/vimrc @ 452:d048318ba839

Better indenting in Vim.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 09 May 2018 08:41:16 -0700
parents 05ab0353cd6e
children 97a94dacfd54
comparison
equal deleted inserted replaced
451:d5d49e678146 452:d048318ba839
650 650
651 " Use sane regexes. 651 " Use sane regexes.
652 nnoremap / /\v 652 nnoremap / /\v
653 vnoremap / /\v 653 vnoremap / /\v
654 654
655 " Don't lose visual selection when you indent/unindent.
656 vnoremap > >gv
657 vnoremap < <gv
658
655 " Next/previous quickfix and location messages. 659 " Next/previous quickfix and location messages.
656 " This is meant to be similar to ]c and [c for the diff navigation. 660 " This is meant to be similar to ]c and [c for the diff navigation.
657 nnoremap ]q :cnext<cr>zvzz 661 nnoremap ]q :cnext<cr>zvzz
658 nnoremap [q :cprevious<cr>zvzz 662 nnoremap [q :cprevious<cr>zvzz
659 nnoremap ]l :lnext<cr>zvzz 663 nnoremap ]l :lnext<cr>zvzz