Hello I have this text:
public static Type Name = new Type();
public static Type NameX() {}
If I search:
/public static \(.\{-}\) \(\w\+\)(
I get both lines selected until the (
, but I expect the first one should not be.
I don't understand what I'm doing wrong, I thought that searching for \w
means alphanumeric not including =
or spaces, but when I add the (
, it's like the \w\+
converts to .*
gVim version 9.0 patches 1-1778 on Windows 10