X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=35b983095bc556cff7a9f1850d83eb558faa08a1;hb=1d73991ce43d1743f7f875d98e41986dc9f96a53;hp=a7fa4d731c1ce8dd71b213f949603ed5b80e6118;hpb=6f8d2d0c7a03bab016e5d0c05bc23f8269291fc0;p=config%2Fdotfiles.git 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