I have lines like the following ones (actually function prototypes)
void ()
word ( word, another word, one_more word, ..., hello, ... )
one argument ( only )
I want to match each single argument and enclose it between <
and >
.
Before wasting time with the replacement string, I'm trying to devise the proper search pattern. The following command
:%s/\(( \|, \)\(.\{-}\)\( )\|,\)/\1<\2>\3/g
only matches and replace odd-position arguments.