From 9be63f590dbe5a1de03220a3e2826778309038d2 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 10 Nov 2017 21:34:47 +1300 Subject: Rename yank.vim to registers.vim More likely to share options this way. --- vim/config/registers.vim | 4 ++++ vim/config/yank.vim | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 vim/config/registers.vim delete mode 100644 vim/config/yank.vim diff --git a/vim/config/registers.vim b/vim/config/registers.vim new file mode 100644 index 00000000..01879aa8 --- /dev/null +++ b/vim/config/registers.vim @@ -0,0 +1,4 @@ +" Change and delete with C and D both cut off the remainder of the line from +" the cursor, but Y yanks the whole line, which is inconsistent (and can be +" done with yy anyway); this fixes it so it only yanks the rest of the line +nnoremap Y y$ diff --git a/vim/config/yank.vim b/vim/config/yank.vim deleted file mode 100644 index 01879aa8..00000000 --- a/vim/config/yank.vim +++ /dev/null @@ -1,4 +0,0 @@ -" Change and delete with C and D both cut off the remainder of the line from -" the cursor, but Y yanks the whole line, which is inconsistent (and can be -" done with yy anyway); this fixes it so it only yanks the rest of the line -nnoremap Y y$ -- cgit v1.2.3