Vim insert after specific number of delimiters

Viewed 443

I am looking to make some code easier to read by taking something like this:

0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44 ....

and adding new lines to create increments of 8:

0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44,
0x44, 0x44 ....

Anyone know any vim magic that will allow me to do this with specifically selected lines?

5 Answers
Related