Re: syntax based on position
- On Wed, Oct 30, 2002 at 02:40:44PM -0500, digitect@... wrote:
> From: "Mikolaj Machowski" <mikmach@...>Thanks :) Life changing thing.
> > Is it possible to define syntax highlighting based on position in
> > the file not syntax?
> Yes it is, I was just experimenting with this last night.
> You need to use the "syntax match" syntax (:help syn-define).
> Then use one of the available regexp position patterns:
> :help \%^ or \%$ or \%# or \%l or \%c or \%v