Text Reflow in Vim
On older versions of Micro$oft Works there was a useful function called "Reflow" that removed unnecessary line breaks and tabs from a paragraph. It was needed because word-wrapping was still in its infancy at the time and after multiple edits, a paragraph would have some lines that were really short, others really long, and unneeded line breaks.
e.g. it would turn a paragraph
like this into
a nice paragraph like the
one
above.
What I want to be able to do is make Vim fix this for me. I import a lot of DOS-format text files into Vim, and I have a large collection of files that were created in GUI text editors. Both look terrible when I view them with Vim because they have all kinds of line breaks and such.
Anyone know how to do this?
|