diff options
author | Jeff King <peff@peff.net> | 2006-09-12 03:22:49 +0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-09-13 11:31:58 +0400 |
commit | cdad8bbe92a447233133be8f9f3015c1bd7e10eb (patch) | |
tree | 8e734f81858698f537722a856cbf96805574ea81 /contrib/vim/README | |
parent | 6d2489235f5430071b8df2281c5f9ce00097bb31 (diff) |
contrib/vim: add syntax highlighting file for commits
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'contrib/vim/README')
-rw-r--r-- | contrib/vim/README | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/vim/README b/contrib/vim/README new file mode 100644 index 0000000000..9e7881fea9 --- /dev/null +++ b/contrib/vim/README @@ -0,0 +1,8 @@ +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 |