Monday, April 2, 2018

Re: Search & replace with grep

On Sunday, 1 April 2018 12:29:47 UTC+2, mstep....@googlemail.com wrote:

Sorry I forgot to escape the capturing \( \)

So my search pattern should be:

:s/\begin{center}\n\(\s\+\)\textcolor{mygray}{\large \([^}]\+\)}\s+\end{center}\s+/$1\vimcode{$2}/g

--
--
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.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment