On Mon, Dec 8, 2008 at 2:40 PM, Ted Pavlic wrote:
>
> Ted Pavlic wrote:
>>
>> Vim presently comes packaged with a "gitconfig" filetype. However, it
>> doesn't have any support for Mercurial hgrc files.
>
> Alternatively, the existing "cfg" file type works well for such files
>
> autocmd BufNewFile,BufRead *.hgrc,*hgrc setfiletype cfg
So does the already existing 'dosini' filetype. However, neither
'dosini' nor your 'ini' syntax file allow for comments at end of line,
ie
gitproxy=default-proxy ; for all the rest
gitconfig handles this, as well as checking that strings stored to
variables are properly terminated, and that recognized escape
characters are not highlighted within a string. All of these are
valuable things for a syntax file to do. 'cfg' or 'ini' or 'dosini'
aren't inappropriate, they just don't know as much about the format
git requires and can't highlight it as well because of that. Like
setting ft=c in a C++ file, most things will work but not everything.
~Matt
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---