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

Re: commit message columns

From
Jeff King <peff@peff.net>
Date
Jan 23, 2007, 05:17 UTC
Message-ID
<20070123051720.GA24259@coredump.intra.peff.net>
In-Reply-To
<20070122221927.GA3746@moooo.ath.cx>
On Mon, Jan 22, 2007 at 11:19:27PM +0100, Matthias Lederhofer wrote:
> You could add this to your .vimrc:
> > autocmd BufNewFile,BufRead .git/COMMIT_EDITMSG setlocal tw=60 ft=human
> Has anyone a good filetype for this?

I do the same thing, but I use filetype=gitcommit. Then it picks up the syntax highlighting file automatically (see contrib/vim).

-Peff
Previous: Matthias Lederhofer
Message 6 of 6 in “commit message columns”
  1. J. Bruce FieldsJan 22, 2007
  2. Jimmy TangJan 22, 2007
  3. J. Bruce FieldsJan 22, 2007
  4. Shawn O. PearceJan 22, 2007
  5. Matthias LederhoferJan 22, 2007
  6. Jeff KingJan 23, 2007

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.