diff rc/vimrc @ 496:6bdf99bfbe97

Newer git use different filename, I think.
author edogawaconan <me@myconan.net>
date Fri, 20 Dec 2013 20:17:21 +0900
parents 229acf12b960
children e2b52663763b
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