X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=42b0eee715736adb66553f12f8a33b8fbcc76d93;hb=7b8dcf6875fb662b873f184e97393817bdbfc40a;hp=a3c95d338226cc406c55ab9cae8375e983687de6;hpb=c8549a38306000d76450d02f220c322117e62ba7;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index a3c95d3..42b0eee 100644 --- a/vimrc +++ b/vimrc @@ -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