You can also use wrapmargin, whose description is defined as:
Number of characters from the right window border where wrapping starts. When typing text beyond this limit, an <EOL> will be inserted and inserting continues on the next line.
Peter Apr 13 '09 at 15:14 2009-04-13 15:14
source share