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?
This is not the prettiest solution and I am sure that it can be cleaned up / simplified some. First select the text and then enter this command:
This outputs something like this: