X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=98009b8611eb2885af03a11a4057c57899698ce9;hb=74aff9e33024011449e14e562e517f0447460d8a;hp=a3c95d338226cc406c55ab9cae8375e983687de6;hpb=c8549a38306000d76450d02f220c322117e62ba7;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index a3c95d3..98009b8 100644 --- a/vimrc +++ b/vimrc @@ -205,7 +205,7 @@ if has('syntax') endif " Highlight TODO, FIXME, CHANGED and XXX in all documents. - if v:version >= 701 && has('patch40') + if v:version > 701 || (v:version == 701 && has('patch42')) call matchadd('Todo', '\(TODO\|FIXME\|CHANGED\|XXX\)') endif endif @@ -235,13 +235,15 @@ if has('autocmd') \ if line("'\"") > 1 && line("'\"") <= line("$") | \ execute "normal! g'\"" | \ endif +" But not for Git commits, go to beginning of the file. + autocmd BufReadPost COMMIT_EDITMSG normal! gg " AFTER/FTPLUGIN AUTO COMMANDS " Disable spell checking for files which don't need it. - autocmd FileType deb setlocal nospell + autocmd FileType deb setlocal nospell autocmd FileType diff setlocal nospell - autocmd FileType tar setlocal nospell + autocmd FileType tar setlocal nospell " Fix to allow Vim edit crontab files as crontab doesn't work with " backupcopy=auto. autocmd FileType crontab setlocal backupcopy=yes