aboutsummaryrefslogtreecommitdiff
path: root/vim/config/registers.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-10 21:34:47 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-10 21:34:47 +1300
commit9be63f590dbe5a1de03220a3e2826778309038d2 (patch)
treeed29afa4ef8ddd706db27fe20bdeaf81c9f08154 /vim/config/registers.vim
parentMove nrformats.vim content to format.vim (diff)
downloaddotfiles-9be63f590dbe5a1de03220a3e2826778309038d2.tar.gz
dotfiles-9be63f590dbe5a1de03220a3e2826778309038d2.zip
Rename yank.vim to registers.vim
More likely to share options this way.
Diffstat (limited to 'vim/config/registers.vim')
-rw-r--r--vim/config/registers.vim4
1 files changed, 4 insertions, 0 deletions
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$