X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vimrc;h=9015ca9645f74021cf836b25129b47410110688f;hb=fcc227c0c138ad0619017d34821876a717c45a97;hp=a3163f81e1275616f5174ee3096aac05c37ffb8d;hpb=e6c10ad7585aaaa621f3b9b9850704341ac72b8d;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index a3163f8..9015ca9 100644 --- a/vimrc +++ b/vimrc @@ -113,6 +113,11 @@ nnoremap - map se :set spelllang=en_us map sd :set spelllang=de_de +" Add semicolon to the end of the line. Thanks to +" http://www.van-laarhoven.org/vim/.vimrc for this idea and godlygeek in #vim +" for an improved version which doesn't clobber any marks. +nnoremap ; :call setline(line('.'), getline('.') . ';') + " I often type "W" instead of "w" when trying to save a file. Fix my mistake. " Thanks to Tony Mechelynck from the Vim " mailing list for the commands.