From: Simon Ruderich Date: Fri, 30 Oct 2009 16:35:18 +0000 (+0100) Subject: vimrc: Don't restore last position for git commit messages. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=7b8dcf6875fb662b873f184e97393817bdbfc40a;p=config%2Fdotfiles.git vimrc: Don't restore last position for git commit messages. --- diff --git a/vimrc b/vimrc index 48116af..42b0eee 100644 --- a/vimrc +++ b/vimrc @@ -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