strange behavior in vim with negative look-behind
Posted
by João Portela
on Stack Overflow
See other posts from Stack Overflow
or by João Portela
Published on 2010-04-15T16:38:36Z
Indexed on
2010/04/15
16:43 UTC
Read the original article
Hit count: 357
So, I am doing this search in vim:
/\(\(unum\)\|\(player\)=\)\@<!\"1\"
and as expected it does not match lines that have:
player="1"
but matches lines that have:
unum="1"
what am i doing wrong? isn't the atom to be negated all of this: \(\(unum\)\|\(player\)=\)
naturally just doing: /\(\(unum\)\|\(player\)=\)
matches unum=
or player=
.
© Stack Overflow or respective owner