Alternatively, the existing "cfg" file type works well for such files

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

--Ted

Ted Pavlic wrote:
> 
> Vim presently comes packaged with a "gitconfig" filetype. However, it 
> doesn't have any support for Mercurial hgrc files.
> 
> Interestingly, both git and Mercurial simply use INI files. That is, it 
> seems wrong to have a special gitconfig filetype (and a special 
> hgrc/etc.). They should all just be ini files.
> 
> Today, this was released:
> 
>       http://bitbucket.org/boredzo/vim-ini-syntax/
> 
> It's an INI syntax file for Vim, and there are instructions on 
> associating the file type with hgrc files. It could just as easily be 
> applied to gitconfig as well.
> 
> Sometime in the next Vim, it would be nice to see hgrc syntax support 
> (as an INI file or otherwise).
> 
> --Ted
> 

-- 
Ted Pavlic <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to