How do I join all soft-wrapped lines in each paragraph into a single line?
:g/^./,/^$/join
The :g/^.
command-line #command-line #editing #global #formatting #paragraphs
:g/^./,/^$/join
The :g/^.
command-line #command-line #editing #global #formatting #paragraphs
qavip:sort\n}jq
Record a macro that visually selects the inner paragraph, sorts its lines, then moves to the next paragraph.
qa{jI## Section \n<Esc>}q
Record a macro that goes to the start of each paragraph and inserts a section header.