diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-28 22:23:25 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-28 22:24:26 +1300 |
commit | b4b53a9a9bee55e8bdcbe91201305a87fcafca60 (patch) | |
tree | 88f6d1ff6eff7fd1955b4153bdf5c84ec23cbdcd /vim | |
parent | Move Fedora workaround .vimrc config into subfile (diff) | |
download | dotfiles-b4b53a9a9bee55e8bdcbe91201305a87fcafca60.tar.gz dotfiles-b4b53a9a9bee55e8bdcbe91201305a87fcafca60.zip |
Move substitution .vimrc config into subfile
Diffstat (limited to 'vim')
-rw-r--r-- | vim/config/substitution.vim | 4 | ||||
-rw-r--r-- | vim/vimrc | 5 |
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> @@ -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 |