2 autocmd BufNewFile,BufRead *.git/COMMIT_EDITMSG set ft=gitcommit
3 autocmd BufNewFile,BufRead *.git/config,.gitconfig,.gitmodules set ft=gitconfig
4 autocmd BufNewFile,BufRead git-rebase-todo set ft=gitrebase
5 autocmd BufNewFile,BufRead .msg.[0-9]*
6 \ if getline(1) =~ '^From.*# This line is ignored.$' |
7 \ set ft=gitsendemail |
9 autocmd BufNewFile,BufRead *.git/**
10 \ if getline(1) =~ '^\x\{40\}\>\|^ref: ' |
14 " This logic really belongs in scripts.vim
15 autocmd BufNewFile,BufRead,StdinReadPost *
16 \ if getline(1) =~ '^\(commit\|tree\|object\) \x\{40\}\>\|^tag \S\+$' |