diff options
-rw-r--r-- | vim/config/yank.vim | 4 | ||||
-rw-r--r-- | vim/vimrc | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/vim/config/yank.vim b/vim/config/yank.vim new file mode 100644 index 00000000..01879aa8 --- /dev/null +++ b/vim/config/yank.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$ @@ -39,8 +39,3 @@ set nrformats-=octal " Use the tilde as an operator with motions, rather than just swapping the " case of the character under the cursor set tildeop - -" 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$ |