aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
m---------vim/bundle/replace_operator0
-rw-r--r--vim/vimrc3
2 files changed, 3 insertions, 0 deletions
diff --git a/vim/bundle/replace_operator b/vim/bundle/replace_operator
new file mode 160000
+Subproject 172fbc5f7e346c26c3cc64335de1e33347f7905
diff --git a/vim/vimrc b/vim/vimrc
index faaa438c..02f992f3 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -297,6 +297,9 @@ nmap <Bslash>O <Plug>(PasteOpenAbove)
nnoremap <Bslash>p :<C-U>set paste! paste?<CR>
" \q formats the current paragraph
nnoremap <Bslash>q gqap
+" \r acts as a replacement operator
+nmap <Bslash>r <Plug>(ReplaceOperator)
+xmap <Bslash>r <Plug>(ReplaceOperator)
" \R reloads ~/.vimrc
nnoremap <Bslash>R :<C-U>source $MYVIMRC<CR>
" \s toggles spell checking