I have this string in my document:
subject.reset();
I am running this regex:
:%s/reset\(\)/doStuff\(\)/g
And the result looks like this:
subject.doStuff()();
Where did that extra parenthesis pair come from? I wanted it to look like this:
subject.doStuff();
How do I do that search and replace in vim?