Tuesday, April 27, 2010

Re: How to highligh multiple matches?

"foo" in the last question, sorry.
 
/p.

On 27 April 2010 16:19, Peter Princz <princzp@gmail.com> wrote:
Dear vim community,
 
I have a small issue, it really just bugs me. Could not find it in the documentation, maybe the collective wisdom of this list will solve it.
 
A search pattern of: .*\zsfoo\ze\&.*\zsbar\ze will find all instances where "foo" and "bar" are at the same line, in arbitrary order.
This is OK, but I want them to be highlighted as matches too, both of them.
 
Now, only "bar" will be highlighted, not "foo".
 
Do yo have any idea, how to highlight "bar" as well?
Any help very much appreciated.
 
Have a nice day,
  Peter

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