Thursday, February 2, 2012

Re: Delete intervening wnitespace (and CR) between words

> Sheets
>
> Sheets of gold
>
> Is there an efficient way to delete the intervening white space and
> CRs between the 'Sheets' to end up with
>
> Sheets Sheets of gold

If you mean "newlines" where you type "white space", you can just
highlight the text and type "J" to join them. If you want to
normalize more than one whitespace character to a single space,
you can issue

s/\_s\+/ /g

over the desired range.

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