Searching for multiple strings in VI

Cole Tuininga colet at code-energy.com
Mon Feb 17 11:13:03 EST 2003


Here's a VI question for any takers - can I do a search on two different
strings at the same time?

Let's say I wanted to search for both "bob" and "snake" at the same
time.  I've tried the following without success:

/(bob|snake)
/\(bob|snake\)

None of these worked.  Any thoughts?  I'm using (g)vim 6.1 in case it
matters.

-- 
"Common sense is the collection of prejudices acquired by age eighteen."
- Albert Einstein

Cole Tuininga
Lead Developer
Code Energy, Inc
colet at code-energy.com
PGP Key ID: 0x43E5755D





More information about the gnhlug-discuss mailing list