Wednesday, July 4, 2012

How to remove empty lines except of one

Hi,

(using vim v.:7.3.584 under Gentoo-Linux with most features set on)

I tried things like

:s/^\r\r\r/\r/g

but with no success...

How can I reduce a bunch of empty lines to one single empty line?

Best regards,
mcc



--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: