Take any long comment in paragraph form:
1 // This is a comment that is really long because it is describing something 2 // worth being verbose about, possibly at the beginning of the program (like a 3 // preamble). It is desirable to keep the width limited to 80-characters, 4 // conveniently done by typing the whole comment out on one line, selecting 5 // with SHIFT+V and executing gq.
As mentioned, the paragraph is made to span several lines with Vim's
gq so the width doesn't run off the edge of certain UI's (such as the StackExchange code block).
My question is: how can the paragraph-comment be edited in Vim? I have been:
Deleting the comment slashes with Ctrlv,
selecting the text with Shiftv,
joining with Shiftj,
editing and using
gqto join them again.
Is there a better (i.e., faster, built-in) way to do this?