I am struggling combining a negative lookahead assertion @!
with the very magic specifier \v
I have a buffer with this content
<div class='vvv'>abc</div>
<div class='ttt'>abc</div>
and I want to search for all classes except vvv. I can do this like so
/class=.\(vvv\)\@!
This finds the second line (class='ttt'
), as expected. Yet, when I try to search with the very magic modifier:
/\vclass=.(vvv)@!
the search finds both classes. I had wrongly assumed these searches to be equivalent. Why are they different?
\=
\vclass\=.(vvv)@!
.