diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-22 22:22:23 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-22 22:22:23 +1200 |
commit | d7372cfa35f593af7e157d87d1c6fef1b007b52d (patch) | |
tree | c14f9fcb5adb06bef9b4f55a8e2568fc458eac12 | |
parent | Adjust mappings for reloading vimrc and filetype (diff) | |
download | dotfiles-d7372cfa35f593af7e157d87d1c6fef1b007b52d.tar.gz dotfiles-d7372cfa35f593af7e157d87d1c6fef1b007b52d.zip |
Add replace_operator.vim plugin and config
-rw-r--r-- | .gitmodules | 3 | ||||
m--------- | vim/bundle/replace_operator | 0 | ||||
-rw-r--r-- | vim/vimrc | 3 |
3 files changed, 6 insertions, 0 deletions
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 +Subproject 172fbc5f7e346c26c3cc64335de1e33347f7905 @@ -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 |