From 7b8dcf6875fb662b873f184e97393817bdbfc40a Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 30 Oct 2009 17:35:18 +0100 Subject: [PATCH] vimrc: Don't restore last position for git commit messages. --- vimrc | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.45.2