X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=b6e1cbb3537c58af7bd9d58e5f8f0643ce756da7;hb=44bd7f52a0245409d50a98a43dfba618f506f9f8;hp=a3163f81e1275616f5174ee3096aac05c37ffb8d;hpb=fc7c97547a236b9b4e5678d1e2742b98293ed957;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index a3163f8..b6e1cbb 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. @@ -176,7 +181,7 @@ map NERDCommenterToggle " twice. if has("autocmd") augroup vimrc - autocmd! + autocmd! " Use diff filetype for mercurial patches in patch queue. autocmd BufReadPost */.hg/patches/* set filetype=diff