42041Re: :match and 'hlsearch'
- Mar 1, 2006
> I realize that it would be additional work, but I think it would beOk I'm confused. What can ":match" do that ":syn match" cannot?
> worth it. There are quite a few things the :match command could be
> used for that can't be done with syntax highlighting.
And for reference, I always use this in all my buffers:
highlight WhiteSpaceEOL ctermbg=darkgreen guibg=lightgreen
match WhiteSpaceEOL /\(^\s*\)\@<=\ \|\s\+$/
It matches all trailing whitespace and also any spaces in leading
If I do another match it clears the first. I noticed that I can do
multiple ":syn match" though. Can someone explain the difference.
- << Previous post in topic Next post in topic >>