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.
gq in visual mode
Select text with v or V, then press gq to format the selection according to textwidth.
qa0f lll i-<Esc>llli-<Esc>jq
Record a macro that positions the cursor in a 10-digit number and inserts dashes at positions 3 and 6 to create the format xxx-xxx-xxxx.