aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-28 22:23:25 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-28 22:24:26 +1300
commitb4b53a9a9bee55e8bdcbe91201305a87fcafca60 (patch)
tree88f6d1ff6eff7fd1955b4153bdf5c84ec23cbdcd /vim
parentMove Fedora workaround .vimrc config into subfile (diff)
downloaddotfiles-b4b53a9a9bee55e8bdcbe91201305a87fcafca60.tar.gz
dotfiles-b4b53a9a9bee55e8bdcbe91201305a87fcafca60.zip
Move substitution .vimrc config into subfile
Diffstat (limited to 'vim')
-rw-r--r--vim/config/substitution.vim4
-rw-r--r--vim/vimrc5
2 files changed, 4 insertions, 5 deletions
diff --git a/vim/config/substitution.vim b/vim/config/substitution.vim
new file mode 100644
index 00000000..da9eb47e
--- /dev/null
+++ b/vim/config/substitution.vim
@@ -0,0 +1,4 @@
+" Preserve the flags for a pattern when repeating a substitution with &; I
+" don't really understand why this isn't a default, but there it is
+nnoremap & :&&<CR>
+vnoremap & :&&<CR>
diff --git a/vim/vimrc b/vim/vimrc
index 040d1165..6e536c33 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -36,11 +36,6 @@ set backspace=indent,eol,start
" zero-padded decimal, so increment and decrement with ^A and ^X on that basis
set nrformats-=octal
-" Preserve the flags for a pattern when repeating a substitution with &; I don't
-" really understand why this isn't a default, but there it is
-nnoremap & :&&<CR>
-vnoremap & :&&<CR>
-
" Use the tilde as an operator with motions, rather than just swapping the
" case of the character under the cursor
set tildeop