aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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