X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=98009b8611eb2885af03a11a4057c57899698ce9;hb=74aff9e33024011449e14e562e517f0447460d8a;hp=48116afca437a22d5092263c9405a6e7c0d439c0;hpb=fad91034c8ceaf15f1bbacf01c463509f007c28a;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index 48116af..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,6 +235,8 @@ 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