aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc6
1 files changed, 6 insertions, 0 deletions
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 <Space> <Plug>(ScrollNext)
endif
+" Remap normal/visual & to preserve substitution flags
+nnoremap <silent> & :&&<CR>
+if exists(':xnoremap')
+ xnoremap <silent> & :&&<CR>
+endif
+
" Map g: as a 'colon operator'
nmap g: <Plug>(ColonOperator)