aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-02 22:23:27 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-02 22:23:27 +1200
commit487f57db4bc452b2ced4256f700159c551f975a2 (patch)
treeca6ee2945ebccfa7c6269f3a10a09cddf45ffe33
parentaf42abfadd823ae226d08d4bbcc733e56f40c49a (diff)
downloaddotfiles-487f57db4bc452b2ced4256f700159c551f975a2.tar.gz
dotfiles-487f57db4bc452b2ced4256f700159c551f975a2.zip
Revert "Remove & remaps"
This reverts commit 5a9fbcf87cdf4513d3598700b6c6c4ec83dca139. I misread the description of g&.
-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)