If you are using localized version of git and trying to open commits in vim
git commit or
fugitive) then syntax highlighting may
This is how commits looks like for Russian localization:
Changes that should be commited will use
gitcommitComment syntax group instead
gitcommitSelected. Also branch name didn't
highlighted properly too.
To fix that, you need to force use of english localization in git. Add this alias to your shell rc file:
alias git='LANG=en_US.UTF-8 git'
If you are using git wrapper fugitive then you can change default git command for it:
let g:fugitive_git_executable = 'LANG=en_US.UTF-8 git'
This is how proper syntax highlighting should looks like: