Staging
v0.8.1
https://github.com/git/git
Raw File
Tip revision: 3f2a7ae2c84c921e11041a5edc2522964fc1cce5 authored by Junio C Hamano on 31 October 2007, 19:20:05 UTC
GIT 1.5.3.5
Tip revision: 3f2a7ae
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