]> code.delx.au - dotfiles/commitdiff
vim: Stay in visual mode after indenting
authorJames Bunton <jamesbunton@delx.net.au>
Mon, 3 Sep 2012 07:10:28 +0000 (17:10 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Mon, 3 Sep 2012 07:10:28 +0000 (17:10 +1000)
.vim/macros.vim

index 7d89f8f7334f4baf3e195bf6ea3104bf84d07f1c..327eb81b219cfcfccffcf96f05e03052d095bb15 100644 (file)
@@ -33,6 +33,10 @@ nmap <Esc>[Z <C-w>W
 " Q to reformat paragraph. I never use ex mode anyway (default binding for Q)
 nmap Q gwip
 
+" Stay in visual after indenting
+vnoremap < <gv
+vnoremap > >gv
+
 
 " I frequently type :Q or :WQ, etc instead of :q, :wq
 command! WQA :wqa