Automatic Line Breaks With vim

First set the textwidth:

:set textwidth=76

Reformatting

If you want to reformat a block of text, format it and press gq. For example to format the following 4 lines from the current cursor position, press v4jgq (v4j to enter markup mode and mark the following 4 lines).

References

Comments