aboutsummaryrefslogtreecommitdiff
path: root/vim
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 /vim
parentAdd some experimental :vimgrep and :helpgrep maps (diff)
downloaddotfiles-487f57db4bc452b2ced4256f700159c551f975a2.tar.gz
dotfiles-487f57db4bc452b2ced4256f700159c551f975a2.zip
Revert "Remove & remaps"
This reverts commit 5a9fbcf87cdf4513d3598700b6c6c4ec83dca139. I misread the description of g&.
Diffstat (limited to 'vim')
-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)