Vim syntax file for hgrc

Ted Pavlic ted at tedpavlic.com
Mon Dec 8 19:41:28 UTC 2008


> hgrc files are just ini files. I did a quick search of Google and was  
> surprised to find no syntax definition for ini files. (I would be  
> thoroughly unsurprised if there is one and I simply missed it.)

As discussed in an e-mail sent directly to me from someone reading this 
list, it looks like the "cfg" filetype works well:

So an alternative is...

	autocmd BufNewFile,BufRead *.hgrc,*hgrc setfiletype cfg

I'd argue that that would be good for gitconfig files as well.

--Ted


-- 
Ted Pavlic <ted at tedpavlic.com>



More information about the Mercurial mailing list