Saturday, July 9, 2011

Re: Custom Syntax

On 2011-07-09, Nicholas Cole wrote:
> Dear List,
>
> I want to add some definitions to one of the standard syntax files.
> What is the best way to do this. Obviously, I could copy the whole
> file and make my changes on a local user copy, but is there a way to
> read in the default file first and then add some definiations? I've
> tried searching for this sort of thing, but it looks as if most people
> start syntax files from scratch.

If you can add all your definitions after the standard syntax file
has been sourced, the best way to make those additions is to put
them in ~/.vim/after/syntax/<filetype>.vim (for Unix) or
~/vimfiles/after/syntax/<filetype.vim> (for Windows).

See

:help mysyntaxfile-add

Regards,
Gary

--
You received this message from the "vim_use" 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

No comments: