Monday, October 3, 2011

Re: executing SHFT J on certain lines of a visual selection

On 10/03/11 11:17, Taylor Hedberg wrote:
> Try this:
>
> :g/^\d.*\n[^0-9]/j
>
> See `:help :global` and `:help :join`.

I'd almost be tempted to do

:v/^\d/-j

in case you have more than one line wrapped such as

1234 alpha beta
gamma delta
frog toad
camel muskmelon

The change means "on lines that don't match my
intended-start-of-line, join it with the previous line".

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