Change indent/unindent behaviour in visual mode

After indenting/unindenting the selected lines of code, vim
deselects forcing the user to reapply the selection in order to
indent multiple times.

This remap fixes the problem.
This commit is contained in:
Fabio Gallonetto 2013-04-07 11:32:49 +01:00
parent 7e1f628d8f
commit 72ff8f33db

View File

@ -130,6 +130,10 @@ nnoremap ,gcf :call GitGrep(expand("%:t:r"))<CR>
nnoremap <silent> ,z :bp<CR>
nnoremap <silent> ,x :bn<CR>
" Reselect visual block after indent/outdent
vnoremap < <gv
vnoremap > >gv
" ==============================
" Window/Tab/Split Manipulation
" ==============================