Skip to main content

If in Vim, just do this:

:%!cat -s 

The -s flag for cat squeezes multiple blank lines into one.

If in Vim, just do this:

:%!cat -s 

If in Vim, just do this:

:%!cat -s 

The -s flag for cat squeezes multiple blank lines into one.

Source Link
coanor
  • 383
  • 1
  • 3
  • 6

If in Vim, just do this:

:%!cat -s