Thursday, July 5, 2012

Re: How to remove empty lines except of one

On 07/05/12 10:12, Ben Fritz wrote:
> This replacement works for me:
>
> %s/^\_s\+\n/\r

With the (what I'd consider beneficial) side-effect of also removing
trailing whitespace from lines.

-tim


--
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: