1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-15 05:33:04 +01:00
git/contrib/vim
Jeff King 222664e74d contrib/vim: update syntax for changed commit template
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2007-01-22 20:40:26 -08:00
..
syntax contrib/vim: update syntax for changed commit template 2007-01-22 20:40:26 -08:00
README contrib/vim: add syntax highlighting file for commits 2006-09-13 00:31:58 -07:00

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