On Thu, Jul 5, 2012 at 10:47 PM, Tim Chase <[email protected]> wrote:

> 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.
>
>
I'd consider that beneficial as well, except that it doesn't remove the
trailing whitespace in my case.

I still have to use

%s/\s\+$//

to remove trailing whitespaces.

One command to do both - get rid of multiple blank lines and trailing
whitespace - would be super!

- Gautam

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

Reply via email to