From: Simon Ruderich Date: Fri, 6 Sep 2013 01:57:58 +0000 (+0200) Subject: vimrc: Map Y to y$. X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=1d73991ce43d1743f7f875d98e41986dc9f96a53 vimrc: Map Y to y$. --- 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