git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git color in commit editor

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jan 9, 2011, 18:33 UTC
Message-ID
<20110109183304.GB7718@burratino>
In-Reply-To
<AANLkTikns9XyM48HkggaKFEsj61hP1y3Y-QczA0Pp9Bs@mail.gmail.com>
Pavan Savoy wrote:
> Thanks, I do have syntax on in my vimrc, as I mentioned, I also have colors in
> vim for .c files on both machines...
> The only differences being git versions, also what syntax or color
> format would vim get for git and from where?

$ find /usr/share/vim -name git\* /usr/share/vim/vim73/ftplugin/gitconfig.vim /usr/share/vim/vim73/ftplugin/gitsendemail.vim /usr/share/vim/vim73/ftplugin/gitrebase.vim /usr/share/vim/vim73/ftplugin/gitcommit.vim /usr/share/vim/vim73/ftplugin/git.vim /usr/share/vim/vim73/indent/gitconfig.vim /usr/share/vim/vim73/syntax/gitconfig.vim /usr/share/vim/vim73/syntax/gitsendemail.vim /usr/share/vim/vim73/syntax/gitrebase.vim /usr/share/vim/vim73/syntax/gitcommit.vim /usr/share/vim/vim73/syntax/git.vim

":help :syn-files" explains how to use them.

Hope that helps, Jonathan

Previous: Pavan Savoy
Message 6 of 6 in “git color in commit editor”
  1. Pavan SavoyJan 6, 2011
  2. Thomas RastJan 6, 2011
  3. Matthijs KooijmanJan 6, 2011
  4. Ævar Arnfjörð BjarmasonJan 6, 2011
  5. Pavan SavoyJan 9, 2011
  6. Jonathan NiederJan 9, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.