From 6a1209adc7c3bede26376a90b2068d2801e391f8 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 8 May 2019 23:48:48 +1200 Subject: Remap g& to preserve substitution flags --- vim/vimrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vim/vimrc b/vim/vimrc index 5d3bfc7a..d996e1c6 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -243,9 +243,10 @@ if &loadplugins " Don't change the mapping if we won't be loading the plugin nmap (ScrollNext) endif -" Remap normal/visual & to preserve substitution flags +" Remap normal/visual & and g& to preserve substitution flags nnoremap & :&& xnoremap & :&& +nnoremap g& :%&& " Map g: as a 'colon operator' nmap g: (ColonOperator) -- cgit v1.2.3