How do you format (rewrap) a visual selection to textwidth?
gq in visual mode
Select text with v or V, then press gq to format the selection according to textwidth.
4 results for "gq format text"
gq in visual mode
Select text with v or V, then press gq to format the selection according to textwidth.
gq (visual mode)
Pressing gq on a visual selection reformats the selected lines to hard-wrap at textwidth columns.
gqap
The gq operator reformats text by wrapping lines to fit within the textwidth setting.
gqip
The gqip command reformats the current paragraph to fit within the configured textwidth.