aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-28 22:25:23 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-28 22:25:23 +1300
commit61bc98d0c54640d3cfc6ef80f9d1f161a8a43920 (patch)
tree563d94b30cb1b8f1b9545a660ec7c49c49291068
parentMove buffers .vimrc config into subfile (diff)
downloaddotfiles-61bc98d0c54640d3cfc6ef80f9d1f161a8a43920.tar.gz
dotfiles-61bc98d0c54640d3cfc6ef80f9d1f161a8a43920.zip
Move yanking .vimrc config into subfile
-rw-r--r--vim/config/yank.vim4
-rw-r--r--vim/vimrc5
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$
diff --git a/vim/vimrc b/vim/vimrc
index d56c9ee6..889cff01 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -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$