augroup filetypedetect au BufRead,BufNewFile COMMIT_EDITMSG set ft=git augroup END