Pretty basic question, I\'m trying to write a regex in Vim to match any phrase starting with \"abc \" directly followed by anything other than \"defg\"
\"abc \"
\"defg\"
Here we go, this is a hairy one:
/\%(\%(.\{-}\)\@<=XXXXXX\zs\)*
(replace XXXXXX with the search word). This will search for everything that does not contain XXXXXX. I imagine if you did:
/abc \%(\%(.\{-}\)\@<=defg\zs\)*
This may work like you want it to. Hope this helps a little!