From d7372cfa35f593af7e157d87d1c6fef1b007b52d Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 22 Aug 2018 22:22:23 +1200 Subject: Add replace_operator.vim plugin and config --- .gitmodules | 3 +++ vim/bundle/replace_operator | 1 + vim/vimrc | 3 +++ 3 files changed, 7 insertions(+) create mode 160000 vim/bundle/replace_operator diff --git a/.gitmodules b/.gitmodules index 7bc3a80a..ebf3872a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -44,6 +44,9 @@ [submodule "vim/bundle/redact_pass"] path = vim/bundle/redact_pass url = https://sanctum.geek.nz/code/vim-redact-pass.git +[submodule "vim/bundle/replace_operator"] + path = vim/bundle/replace_operator + url = https://sanctum.geek.nz/code/vim-replace-operator.git [submodule "vim/bundle/scroll_next"] path = vim/bundle/scroll_next url = https://sanctum.geek.nz/code/vim-scroll-next.git diff --git a/vim/bundle/replace_operator b/vim/bundle/replace_operator new file mode 160000 index 00000000..172fbc5f --- /dev/null +++ b/vim/bundle/replace_operator @@ -0,0 +1 @@ +Subproject commit 172fbc5f7e346c26c3cc64335de1e33347f79058 diff --git a/vim/vimrc b/vim/vimrc index faaa438c..02f992f3 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -297,6 +297,9 @@ nmap O (PasteOpenAbove) nnoremap p :set paste! paste? " \q formats the current paragraph nnoremap q gqap +" \r acts as a replacement operator +nmap r (ReplaceOperator) +xmap r (ReplaceOperator) " \R reloads ~/.vimrc nnoremap R :source $MYVIMRC " \s toggles spell checking -- cgit v1.2.3