On Thu, 10 Dec 2020 at 16:32, Gabriele F <[email protected]> wrote: > > Well if you want only from "future" I don't know, but if instead you > want "the whole line containing > the match, as well as the whole of the next line" > ":g/future.*ref.*\n.*\n/p 2" seems to give that result, and only if > there is a match (yes, I put "p 3" by mistake in the other mail). > Of course inelegant and inflexible, I don't know if there are better ways
You are right. And in this particular case, the regex can be simplified to "/future.*ref/". -aw -- -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CALPW7mQp_p%3DpWT0yx95vMGdM3N-LqSMxJ3cxJ%2Bx20HqK41OEfQ%40mail.gmail.com.
