hg commit syntax file

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

hg commit syntax file

Jeff Horelick
Hey all,

I figured since vim's CVS is deprecated (gone?) it'd be a good time to bring this up. I was looking around the web for some hg/Mercurial syntax hilighting files and i noticed that there are a few for Git (in the runtime no less) but really none for hg. So i found this hg commit syntax file from a guy named Dan LaMotte. I'm not sure how vim folks run hg commit, but if you run it that way ("hg commit") it'll let you edit the commit message in your EDITOR and nicely syntax hilight the changed files and the comments and such which is quite convienient.

Here's the filetype.vim line i use:

" hg commit messages
au BufRead,BufNewFile hg-editor-*.txt setf hgcommit


Thanks
JD

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

hgcommit.vim (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: hg commit syntax file

Bram Moolenaar

Jeff Horelick wrote:

> I figured since vim's CVS is deprecated (gone?) it'd be a good time to bring
> this up. I was looking around the web for some hg/Mercurial syntax
> hilighting files and i noticed that there are a few for Git (in the runtime
> no less) but really none for hg. So i found this hg commit syntax file from
> a guy named Dan LaMotte. I'm not sure how vim folks run hg commit, but if
> you run it that way ("hg commit") it'll let you edit the commit message in
> your EDITOR and nicely syntax hilight the changed files and the comments and
> such which is quite convienient.
>
> Here's the filetype.vim line i use:
>
> " hg commit messages
> au BufRead,BufNewFile hg-editor-*.txt setf hgcommit

I would really prefer that the author of the script sends it to me.
Not only so that we know who to contact, also for copyright reasons.
Can you try contacting the author?


--
hundred-and-one symptoms of being an internet addict:
103. When you find yourself in the "Computer" section of Barnes & Noble
     enjoying yourself.

 /// Bram Moolenaar -- [hidden email] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php