Welcome to mirror list, hosted at ThFree Co, Russian Federation.

README « vim « contrib - git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9e7881fea923e47c3c35028ebbc00bce395d4005 (plain)
1
2
3
4
5
6
7
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