How do set vim to wrap text without inserting newlines?
Basically:
I can get some of this behavior with:
:set textwidth=80
:set wrap
Except this will insert newlines, and I don't want it to insert newlines. I already tried this but it doesn't work.
Reducing the width of the window to circa 80 characters, set wrap
, and set linebreak
should satisfy all your requirements.
See :help 'wrap'
and :help 'linebreak'
.