mirror of
https://github.com/git/git.git
synced 2024-11-16 06:03:44 +01:00
222664e74d
Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <junkio@cox.net> |
||
---|---|---|
.. | ||
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