in command mode: gqq
Reformats the current long line into a paragraph of the specified width. If a word overruns the column width limit, the entire word is moved to the next line.
Reformats the current long line into a paragraph of the specified width. If a word overruns the column width limit, the entire word is moved to the next line.
See here for relevant documentation: https://neovim.io/doc/user/change.html#formatting
gq is a linewise operation anyway, so gq_, gqil, and gqal all have the same effect
1) mark your lines (Shift+v then move your cursor)
2) press ':'
3) '<,'> !fmt -w 80
In the similar way I also use column to format text.
vipJ