How do you use a macro to sort paragraphs alphabetically?
Answer
qavip:sort\n}jq
Explanation
Record a macro that visually selects the inner paragraph, sorts its lines, then moves to the next paragraph. Apply to sort each paragraph.
qavip:sort\n}jq
Record a macro that visually selects the inner paragraph, sorts its lines, then moves to the next paragraph. Apply to sort each paragraph.