From 5c8ac3cf5463c21902277e6cb21aec60384da0b6 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 26 Jun 2014 13:24:55 -0400 Subject: vimrc: update mapping to reselect selection The visual selection would get dropped after saving using from visual mode. Ensure that we're brought back to were we started before save. --- vimrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index b595a16..142921e 100644 --- a/vimrc +++ b/vimrc @@ -218,6 +218,10 @@ " have to do this and typing :co multiple times a " day adds up. " +" 2014.06.26: +" * Update save mapping in visual mode to reselect the last +" selected area +" " Pathogen @@ -452,7 +456,7 @@ vnoremap " across modes, and because bash by default doesn't let me map Control-s) nnoremap :update inoremap u:updatea -vnoremap :updatev +vnoremap :updategv " Preserve indentation on empty lines " http://stackoverflow.com/a/7413117 -- cgit v1.2.3