me2
me2

Reputation: 754

In Vim, how do I match on "=" but not on "=="?

I've tried a number of different search patterns:

Suggestions?

Upvotes: 7

Views: 298

Answers (2)

ostler.c
ostler.c

Reputation: 3472

How about

[^=]\?\zs=\ze[^=]\?

\zs starts the match \ze ends the match

Upvotes: 0

me2
me2

Reputation: 754

Ah hah: =\@<!==\@!

Upvotes: 8

Related Questions