Staging
v0.8.1
https://github.com/git/git
Raw File
Tip revision: 32f56600bb6ac6fc57183e79d2c1515dfa56672f authored by Junio C Hamano on 30 July 2014, 21:19:53 UTC
Git 2.0.4
Tip revision: 32f5660
README
Syntax highlighting for git commit messages, config files, etc. is
included with the vim distribution as of vim 7.2, and should work
automatically.

If you have an older version of vim, you can get the latest syntax
files from the vim project:

  http://ftp.vim.org/pub/vim/runtime/syntax/git.vim
  http://ftp.vim.org/pub/vim/runtime/syntax/gitcommit.vim
  http://ftp.vim.org/pub/vim/runtime/syntax/gitconfig.vim
  http://ftp.vim.org/pub/vim/runtime/syntax/gitrebase.vim
  http://ftp.vim.org/pub/vim/runtime/syntax/gitsendemail.vim

These files are also available via FTP at the same location.

To install:

  1. Copy these files to vim's syntax directory $HOME/.vim/syntax
  2. To auto-detect the editing of various git-related filetypes:

	$ curl http://ftp.vim.org/pub/vim/runtime/filetype.vim |
		sed -ne '/^" Git$/, /^$/ p' >>$HOME/.vim/filetype.vim
back to top