You can either set 'textwidth'
to 0 and then gq{movement}
will line break at screen width or you can set it to desired width and disable autowrapping by changing 'formatoptions'
(alias 'fo'
) like so...
set fo-=t
set fo-=c
Per :h fo-table
:
With 't' and 'c' you can specify when Vim performs auto-wrapping:
value action
"" no automatic formatting (you can use "gq" for manual formatting)
"t" automatic formatting of text, but not comments
"c" automatic formatting for comments, but not text (good for C code)