summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2010-08-31 09:02:41 -0500
committerJesse Luehrs <doy@tozt.net>2010-08-31 09:39:14 -0500
commit5d208393ed6ba1fc401d6223d638fa6b6798cdfd (patch)
tree72987f9fff2640f7dc10ebb81a48f24efa3b6e1f
parentba1c27d55f5c21dac9fa33101eb281f61522d6de (diff)
downloadconf-5d208393ed6ba1fc401d6223d638fa6b6798cdfd.tar.gz
conf-5d208393ed6ba1fc401d6223d638fa6b6798cdfd.zip
don't restore cursor location for git commit message files
-rw-r--r--vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/vimrc b/vimrc
index 65e1d13..81b786a 100644
--- a/vimrc
+++ b/vimrc
@@ -244,7 +244,7 @@ endif
" Autocommands {{{
" When editing a file, always jump to the last cursor position {{{
autocmd BufReadPost *
-\ if line("'\"") > 0 && line("'\"") <= line("$") |
+\ if &filetype != 'gitcommit' && line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal g`\"" |
\ endif
" }}}