So, I have the following line where I would like to find all the {#}= and put them on a new line. Of course there can be more then 9 value entries and there is more text on the line, so I am thinking of looking for something like comma, space, one or more digits, and finally the equal sign, then add a line feed between the comma and the space.
The question is: how do I do that in vi across multiple lines?
sion] ],{1=ValueEntry, 2=ValueEntry, 3=ValueEntry, 4=ValueEntry, 5=ValueEntry, 6=ValueEntry, 7=ValueEntry, 8=ValueEntry}]
sion] ],{1=ValueEntry,
2=ValueEntry,
3=ValueEntry,
4=ValueEntry,
5=ValueEntry,
6=ValueEntry,
7=ValueEntry,
8=ValueEntry}]
\r
adds a new line in a replacement.%s/\v(,\s)(\d\=)/\1\r\2/g
will add the new line after the comma and the space