Sunday, June 26, 2011

Re: "Extending" syntax files / overriding keyword with match

On 27/06/11 6:56 AM, Benjamin R. Haskell wrote:
> On Sat, 25 Jun 2011, bendavis78 wrote:
>
>> Hi, I'm extending the css.vim syntax file for use with a CSS framework using
>> "runtime! syntax/css.vim".
>
> You probably don't want the '!' there. That will run all syntax/css.vim files
> found in 'runtimepath'. The only reason another syntax/css.vim should be present
> in &rtp would be to override a system syntax/css.vim.

No, you do want the '!'. Without it, you may simply pull in a file from
~/.vim/syntax/css.vim that sets a handful of variables or something like
that to be used by $VIMRUNTIME/syntax/css.vim, and not actually get the
CSS highlighting itself pulled in at all. Needless to say, that could be
tremendously unhelpful and annoying.

Smiles,

Ben.

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

Post a Comment