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:
@@ -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
|
||||
" ==============================
|
||||
|
||||
Reference in New Issue
Block a user