In Unix, what do I do when a file I want to edit in vi says "Line too long"?
In Unix, when the vi editor says “line too long” it’s usually because it was copied up from a Mac where the end of line marker is different.
This command works for me on Solaris:
tr '\015' '\012' < in_file > out_file
The numbers are in octal. Be sure and transpose from decimal or hex if necessary.