From 72ff8f33db0f6b3ec37f8012d1979184c1751ff8 Mon Sep 17 00:00:00 2001 From: Fabio Gallonetto Date: Sun, 7 Apr 2013 11:32:49 +0100 Subject: [PATCH] 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. --- vim/plugin/settings/yadr-keymap.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vim/plugin/settings/yadr-keymap.vim b/vim/plugin/settings/yadr-keymap.vim index ed6f8537..00cf62a1 100644 --- a/vim/plugin/settings/yadr-keymap.vim +++ b/vim/plugin/settings/yadr-keymap.vim @@ -130,6 +130,10 @@ nnoremap ,gcf :call GitGrep(expand("%:t:r")) nnoremap ,z :bp nnoremap ,x :bn +" Reselect visual block after indent/outdent +vnoremap < >gv + " ============================== " Window/Tab/Split Manipulation " ==============================