]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Don't restore last position for git commit messages.
authorSimon Ruderich <simon@ruderich.org>
Fri, 30 Oct 2009 16:35:18 +0000 (17:35 +0100)
committerSimon Ruderich <simon@ruderich.org>
Fri, 30 Oct 2009 16:35:18 +0000 (17:35 +0100)
vimrc

diff --git a/vimrc b/vimrc
index 48116afca437a22d5092263c9405a6e7c0d439c0..42b0eee715736adb66553f12f8a33b8fbcc76d93 100644 (file)
--- 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