In Vim, is there a way to search for lines that match say abc but do not also contain xyz later on the line? So the following lines would match:
abc
xyz
This works for me /abc\(.*xyz\)\@!
/abc\(.*xyz\)\@!