How do I collapse long runs of blank lines to a single empty line?
:%s/\n\{3,}/\r\r/g
When files pass through formatters, generators, or repeated edits, they often accumulate noisy vertical gaps.
category: editing tags: #editing #substitute #formatting #cleanup
