What's the best way to do word wrapping for a document in vim?
I'd like have each line wrap at 80 characters, not just visually wrap but enter a newline.
I got this kind of working by using
:set wrap
:set linebreak
But if I go back and insert text on a previous line, it doesn't adjust the rest of the paragraph. It takes the overflow text and puts it on a newline, but the line that comes after doesn't get moved up to fill in the gap.
So if I edit a previous line, my paragraph can look like this
A line that is 80 characters long
short line
A line that is 80 characters lone
I want it to be like this:
A line that is 80 characters long
short line A line that is 80
characters long