1To syntax highlight git's commit messages, you need to:21. Copy syntax/gitcommit.vim to vim's syntax directory:3$ mkdir -p $HOME/.vim/syntax4$ cp syntax/gitcommit.vim $HOME/.vim/syntax52. Auto-detect the editing of git commit files:6$ cat >>$HOME/.vimrc <<'EOF'7autocmd BufNewFile,BufRead COMMIT_EDITMSG set filetype=gitcommit8EOF