On Thu, Jul 5, 2012 at 10:47 PM, Tim Chase <vim@tim.thechases.com> wrote:
On 07/05/12 10:12, Ben Fritz wrote:With the (what I'd consider beneficial) side-effect of also removing
> This replacement works for me:
>
> %s/^\_s\+\n/\r
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
to remove trailing whitespaces.%s/\s\+$//
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
No comments:
Post a Comment