Reformatting X12 in Vim

I’ve been working with a lot of ANSI X12 files lately. Often, they come to me formatted either as a single line, or as multiple lines with line breaks at 80 columns. They’re much...