Thursday, December 24, 2020

Re: Substitute pattern over multiple lines

On Wed, 23 Dec 2020 17:08:32 -0600
Tim Chase <vim@tim.thechases.com> wrote:


> 2 NOTE \zs
>
> This does join *all* the lines and doesn't re-wrap them, so you'd
> then want a second pass to do the wrapping
>
> :set tw=70
> :g/<div [^>]*>.*<\/div>$/norm gqq

His destination is HTML so he doesn't need to wrap them: The browser
will wrap them for him.

SteveT

Steve Litt
Autumn 2020 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20201224144324.41cb95a0%40mydesk.domain.cxm.

No comments:

Post a Comment