Format only the paragraph interior
gwip
Example
Normal 0 / 2Operator pending 1 / 2Normal 2 / 2one two three four five six seven eight nine ten
keepCursor on line 1, column 1one two three four five six seven eight nine ten
keepCursor on line 1, column 1one two three four five
six seven eight nine ten
keepCursor on line 1, column 1Use the inner paragraph as the formatting range.
Waiting for motion or text object
Command applied
Before & after
one two three four five six seven eight nine ten
keepCursor on line 1, column 1one two three four five
six seven eight nine ten
keepCursor on line 1, column 1Start in Normal mode, at line 1, column 1 (one-based). Set textwidth=24 and formatoptions=tcq. Adjacent blank lines are outside the inner object. Press gwip.
Details & Vim help
Example replayed in Vim
Use the inner paragraph as the formatting range.
Set textwidth=24 and formatoptions=tcq. Adjacent blank lines are outside the inner object.