Ignore position memory if it's COMMIT_EDITMSG.

This commit is contained in:
Gea-Suan Lin
2018-02-03 11:08:59 +08:00
parent 16b66bd9db
commit e55fd54a37

View File

@@ -99,3 +99,4 @@ au BufNewFile,BufRead *.yml set shiftwidth=2
au BufNewFile,BufRead Makefile set noexpandtab
au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif
autocmd BufEnter * silent! lcd %:p:h
autocmd BufReadPost COMMIT_EDITMSG exe "normal! gg"