Thursday, December 24, 2020

Re: Substitute pattern over multiple lines



On Thu, Dec 24, 2020 at 3:43 PM Steve Litt <slitt@troubleshooters.com> wrote:
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.

  Correct.  Clearly Tim's initial response was intended to deal with the precise format I said I wanted the output to be in.

 Things are working very well now thanks to the excellent help from Tim.

 John Cordes 

--
--
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/CAGZBEdQdqN-J_usNw0kaHuWRfr_97xO0CcfEfr%3DpryLE_uPCNQ%40mail.gmail.com.

No comments: