Thursday, July 29, 2010

Re: Search on multiple strings at the same time?

Hi Ernie!

On Do, 29 Jul 2010, Ernie wrote:

> Is it possible to search (with / or ?) on multiple (separate) strings
> at the same time.
> So that all search separate strings are hilighted and "n" and "p" will
> go to each string.

Yes separate them with \|

e.g.
If you want to search for cats and dogs, use
/cats\|dogs

See the help :h /\|

regards,
Christian

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