1
0
mirror of https://github.com/git/git.git synced 2024-10-01 13:01:23 +02:00
git/contrib/vim
Jeff King ff7f22f36e vim syntax: follow recent changes to commit template
This patch changes the syntax highlighting to correctly match the new
text of the commit message introduced by
  82dca84871637ac9812c0dec27f56d07cfba524c

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-12-18 00:00:15 -08:00
..
syntax
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