VIM syntax highlight matching

To match a word followed by a ( without matching the (, use \w\+\ze(.

The \ze terminates the matching part of the regex. The + needs to be prepended with a \ to make it magic. (See :help magic).

Also positive lookahead in vim is done with \@=. Not with (?=...).

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top