my .vimrc setting for wrapping line:
set nowrap " Don't auto wrap on load
set fo-=t " Don't wrap text when type
"set colorcolumn= 80
my .vimrc setting for wrapping line:
set nowrap " Don't auto wrap on load
set fo-=t " Don't wrap text when type
"set colorcolumn= 80
Use :set tw=80. Also make sure you are not in “paste” mode. (https://stackoverflow.com/a/1272371/4752883)
If you need visual guidance on where you are with respect to 80 characters you can use :set colorcolumn = 80 (https://vi.stackexchange.com/a/576/13848)
set wrapandset textwidth=80should do it. You can control Vim wrapping pretty precisely see:h 'wrap',:h 'textwidth'and have a look at:h 'linebreak'– statox Dec 23 '17 at 18:55gqto format long lines according to your textwidth setting – D. Ben Knoble Dec 25 '17 at 14:45