Wed, 18 May 2016 00:38:26 -0400
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>