rewar wrote:
Hi,
I have looked around for a way to do this but just cant seem to find
it. Basically, I have very large documents where I want to often
search for a few words in a line, but they wont be all together.
For example, I want to be able to find the line below in a large text
document by simply searching "cat dog"
"cats are smaller than dogs"
All editors I come across only allows you to search for an exact match
of that field "cat dog" in any line.
I see you have your answer already, but here's an answer for a related
question: how to find lines that have "cats" and "dogs", and other
Boolean logic combinations:
http://mysite.verizon.net/astronaut/vim/index.html#LOGIPAT
With it:
your original Q: :LP "cats" | "dogs"
modified Q: :LP "cats" & "dogs"
and lines with cats but no dogs: :LP "cats" & !"dogs"
Regards,
Chip Campbell
--
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