From 1d73991ce43d1743f7f875d98e41986dc9f96a53 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 6 Sep 2013 03:57:58 +0200 Subject: [PATCH] vimrc: Map Y to y$. --- vimrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vimrc b/vimrc index a7fa4d7..35b9830 100644 --- a/vimrc +++ b/vimrc @@ -543,6 +543,10 @@ if has('eval') \ :call TemporaryNostartofline("C-U>") endif +" Let Y yank to the end of the line, similar to D and C. Use yy if you want to +" yank a line. This fixes a weird inconsistency in Vi(m). +nnoremap Y y$ + " Write before suspending, thanks to deryni in #vim on Freenode (2011-05-09 " 20:02 CEST). To suspend without saving either unmap this or use :stop. " Only the current buffer is written, thus switching to another buffer works -- 2.44.1