On 17/02/09 09:50, John Beckett wrote:
> sakki wrote:
>> I know how to detect the filetype, but what I am missing is
>> how to make my new filetype almost like an existing filetype
>> + add a few extensions. In my case the new filetype is like C
>> but I want to add a few new keywords for syntax highlighting
>> and some mappings.
>
> Sorry, I misread your question. Some docs are at
> :help ftplugin-overrule
>
> I have only customised a filetype with some extra stuff in an after
> directory. Someone will probably give better advice, but for what you
> want I would look at vim72/syntax/cpp.vim which invokes c.vim and does
> extra stuff.
>
> John

I would have said the same: check syntax/cpp.vim and possibly 
ftplugin/cpp.vim. C++, after all, is also a language "almost like C".

Best regards,
Tony.
-- 
                AMAZING BUT TRUE ...

There is so much sand in Northern Africa that if it were spread out it
would completely cover the Sahara Desert.

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

Reply via email to