.vimrc

changeset 614
2c3afa7e900f
parent 610
5f49012f8242
child 618
0305d79486fa
--- a/.vimrc
+++ b/.vimrc
@@ -95,8 +95,8 @@ nnoremap <expr> k v:count ? 'k' : 'gk'
 nmap gb <C-^>
 nmap gB :ls<CR>:b<Space>
 
-" Select last paste
-map gV `[v`]
+" Select last paste, in the same mode it was pasted in
+nmap <expr> gV '`[' . strpart(getregtype(), 0, 1) . '`]'
 
 " Use ltag over tselect
 nmap g<C-]> :call vimrc#Ltag(expand('<cword>'))<CR>

mercurial