Staging
v0.8.1
https://github.com/git/git
Raw File
Tip revision: e267c2f6f0784e242883b7d3fe5f36ef63d6950d authored by Junio C Hamano on 15 November 2006, 06:11:26 UTC
GIT 1.4.4
Tip revision: e267c2f
README
To syntax highlight git's commit messages, you need to:
  1. Copy syntax/gitcommit.vim to vim's syntax directory:
     $ mkdir -p $HOME/.vim/syntax
     $ cp syntax/gitcommit.vim $HOME/.vim/syntax
  2. Auto-detect the editing of git commit files:
     $ cat >>$HOME/.vimrc <<'EOF'
     autocmd BufNewFile,BufRead COMMIT_EDITMSG set filetype=gitcommit
     EOF
back to top