output txt file:
0x00,0xff ,0xff,0xff ,0xff,0xff ,0xff,0x00 ,0x39,0xf6 ,0x34,0x12 ,0x78,0x56 ,0x34,0x12,
0x19,0x1a ,0x01,0x03 ,0x80,0x59 ,0x32,0x78 ,0xea,0xee ,0x91,0xa3 ,0x54,0x4c ,0x99,0x26,
0x0f,0x50 ,0x54,0x00 ,0x00,0x00 ,0x01,0x01 ,0x01,0x01 ,0x01,0x01 ,0x01,0x01 ,0x01,0x01,
0x01,0x01 ,0x01,0x01 ,0x01,0x01 ,0x08,0xe8 ,0x00,0x30 ,0xf2,0x70 ,0x5a,0x80 ,0xb0,0x58,
0x8a,0x00 ,0x22,0xc4 ,0x31,0x00 ,0x00,0x1e ,0x00,0x00 ,0x00,0xfc ,0x00,0x4e ,0x4f,0x56,
0x41,0x53 ,0x54,0x41 ,0x52,0x0a ,0x20,0x20 ,0x20,0x20 ,0x00,0x00 ,0x00,0x11 ,0x00,0x00,
0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x11,
0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x01,0x5b,
0x02,0x03 ,0x1c,0xd0 ,0x41,0x61 ,0x23,0x09 ,0x07,0x07 ,0x67,0x03 ,0x0c,0x00 ,0x10,0x00,
0x20,0x3c ,0x67,0xd8 ,0x5d,0xc4 ,0x01,0x78 ,0xc0,0x02 ,0xe1,0x0f ,0x08,0xe8 ,0x00,0x30,
0xf2,0x70 ,0x5a,0x80 ,0xb0,0x58 ,0x8a,0x00 ,0x20,0xc2 ,0x31,0x00 ,0x00,0x1e ,0x00,0x00,
0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00,
0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00,
0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00,
0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00,
0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0x00 ,0x00,0xa7
By default, it should be saved already, in your .viminfo file. Check your 'viminfo' setting to make sure if you are worried.
You can also paste the contents of your register into a file with this normal-mode command:
"ap
Then you can save that file if you like. To get your macro back, just yank the content back into a register:
0"ay$
This may not work in all cases for special characters in the register, etc. The .viminfo method is probably more robust.