How to do automatic word-wrapping in vim?

Extracted from debian-user
Tip provided by David Z. Maze
>  > Also, is <CR> the only way to avoid "broken words" at the end of a line?
 SEP>
 SEP> And yes, hitting enter is the only way.
 
 No it's not...in vim, I routinely do
 
         :set wm=4
 
 which sets a "wrap margin" of 4 characters at the end of each
 (80-character) line, and does automatic word-wrapping.  Alternatively,
 I can use the vim 'gq' command to reformat a region; type ':help gq'
 from vim command mode for more information.

Follow-up :
| Previous | Next | Index of category | Main Index | Submit |


Appears in section(s) : configuration
Tip recorded : 16-05-1999 21:09:10
HTML page last changed : 27-07-1999 20:09:14