From 487f57db4bc452b2ced4256f700159c551f975a2 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 2 Aug 2018 22:23:27 +1200 Subject: Revert "Remove & remaps" This reverts commit 5a9fbcf87cdf4513d3598700b6c6c4ec83dca139. I misread the description of g&. --- vim/vimrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vim/vimrc b/vim/vimrc index df0caa18..b89f655c 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -204,6 +204,12 @@ if &loadplugins nmap (ScrollNext) endif +" Remap normal/visual & to preserve substitution flags +nnoremap & :&& +if exists(':xnoremap') + xnoremap & :&& +endif + " Map g: as a 'colon operator' nmap g: (ColonOperator) -- cgit v1.2.3