changeset 496:6bdf99bfbe97

Newer git use different filename, I think.
author edogawaconan <me@myconan.net>
date Fri, 20 Dec 2013 20:17:21 +0900
parents fea77cdcdb09
children ffef7605f833
files rc/vimrc
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rc/vimrc	Fri Dec 20 20:17:00 2013 +0900
+++ b/rc/vimrc	Fri Dec 20 20:17:21 2013 +0900
@@ -69,6 +69,7 @@
   autocmd BufRead,BufNewFile crontab.* :set noet
   autocmd BufRead,BufNewFile crontab :set noet
   autocmd BufRead,BufNewFile fstab :set noet
+  autocmd BufRead,BufNewFile */.git/COMMIT_EDITMSG :set noet
   autocmd BufRead,BufNewFile .git/COMMIT_EDITMSG :set noet
   autocmd BufRead,BufNewFile .gitconfig :set noet
   autocmd BufRead,BufNewFile .git/config :set noet
@@ -91,6 +92,7 @@
     autocmd!
     autocmd BufWinEnter * call ResCur()
   augroup END
+  autocmd BufWinEnter */.git/COMMIT_EDITMSG exe "normal! gg"
   autocmd BufWinEnter .git/COMMIT_EDITMSG exe "normal! gg"
 endif