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

Re: [PATCH] contrib/vim: add syntax highlighting file for commits

From
Jeff King <peff@peff.net>
Date
Sep 12, 2006, 02:32 UTC
Message-ID
<20060912023256.GA6596@coredump.intra.peff.net>
In-Reply-To
<20060912020813.GD26332@socrates.priv>
On Mon, Sep 11, 2006 at 08:08:13PM -0600, Tom Prince wrote:
> > +  1. Copy commit-syntax.vim to vim's syntax directory:
> > +     $ cp commit-syntax.vim $HOME/.vim/syntax/gitcommit.vim
> It would be more obvious if you could do cp gitcomit.vim $HOME/.vim/syntax/

It would be with only one file, but you could just as easily have a .vim/ftplugin/gitcommit.vim file (I think there are others, too). If you want to give it the "proper" name, it should probably be syntax/gitcommit.vim.

-Peff
Previous: Tom PrinceNext: Junio C Hamano
Message 3 of 6 in “contrib/vim: add syntax highlighting file for commits”
  1. contrib/vim: add syntax highlighting file for commitsJeff King, Sep 11, 2006
  2. Tom PrinceSep 12, 2006
  3. Jeff KingSep 12, 2006
  4. Junio C HamanoSep 13, 2006
  5. Jeff KingSep 13, 2006
  6. Tom PrinceSep 13, 2006

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.