Handy visual mode stuff

Wed, 18 May 2016 00:38:26 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 18 May 2016 00:38:26 -0400
changeset 306
e3fad58ac4ac
parent 305
75a81f694dbf
child 307
b78751068fd3

Handy visual mode stuff

.vimrc file | annotate | diff | comparison | revisions
--- a/.vimrc
+++ b/.vimrc
@@ -149,7 +149,7 @@ nmap <C-j> <C-w>j
 nmap <C-k> <C-w>k
 nmap <C-l> <C-w>l
 
-" Prefer using regexes like in code.
+" Prefer using regexes like in perl code.
 map / /\v
 map ? ?\v
 
@@ -157,6 +157,13 @@ map ? ?\v
 map j gj
 map k gk
 
+" Select last paste
+map gV `[v`]
+
+" Stay in visual when indenting
+vnoremap < <gv
+vnoremap > >gv
+
 " clear all interestingwords with \\k since \K is ri.vim
 nnoremap <silent> <leader><leader>k :call UncolorAllWords()<CR>
 

mercurial