X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=a62b93bcf85115234aeca50705800d0f0ef7643d;hb=6e0b126d88bbccb8513d9182881a2e8bc3c50099;hp=a7fa4d731c1ce8dd71b213f949603ed5b80e6118;hpb=6f8d2d0c7a03bab016e5d0c05bc23f8269291fc0;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index a7fa4d7..a62b93b 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 @@ -618,11 +622,6 @@ else nmap sd endif -" Add semicolon to the end of the line. Thanks to -" http://www.van-laarhoven.org/vim/.vimrc for this idea and godlygeek in #vim -" on Freenode for an improved version which doesn't clobber any marks. -nnoremap ; :call setline(line('.'), getline('.') . ';') - if has('eval') " * and # for selections in visual mode. Thanks to " http://got-ravings.blogspot.com/2008/07/vim-pr0n-visual-search-mappings.html