Saturday, July 9, 2011

Re: Custom Syntax

On 2011-07-09 17:47, Nicholas Cole wrote:
>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.

You can use the after/ directory; place your definitions in
$VIMRUNTIME/after/syntax/$filetype.vim for example.

See :h after-directory

--
│ Magnus Woldrich
m@japh.se
http://japh.se

--
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: