3 ms·
In Vim, J on a selected paragraph does this job.
by brrsty 3y ago
In Vim, J on a selected paragraph does this job.
- dredmorbius 3y agoThe usual challenge (and what OP said ... somewhere in this thread IIRC) is that that can be tedious to invoke on long (many paragraphs) documents. There are recipies which will reflow paragraphs to the end of a document (or a given mark), but here one of the issues is text which shouldn't be reflowed, say, Markdown syntax for tables, lists, possibly blockquotes, code blocks, and the like. My preferred solution is to write either single-sentence-per-line (rarely) or flowed text in vim using: :set tw=0 linebreak nolist wrap Latter lets me just type paragraphs without breaking lines. Vim will flow those in the edit buffer. Other tools which can't handle hard linebreaks are much happier.