In vim you can format a paragraph of prose text with gq. This basically will hard-wrap the lines to the configured textwidth for the filetype.

I use this all the time when writing git commit messages so the body of the message has the recommended max line length of 72.