Hi leandromartinez98!
On Fr, 17 Apr 2009, leandromartinez98 wrote:
>
>
> Thanks Tim,
> I think that should do the trick, but I don't get exactly how to use
> it.
>
> For instance, I'm testing it, trying to replace this: [:%s#/\*(.*)\*/
> #//\1#g] by "test", using:
>
> :g/\V[:%s#/\*(.*)\*/#//\1#g]/s//test/g
>
With \V you still have to escape \ and since you want to use a :g or
:s command you would also have to escape /.
Try something like this:
:let a=':%s#/\*(.*)\*/> #//\1#g'
:exe ':%s/\V' . escape(a,'/\') . "/test/g"
regards,
Christian
--
184. You no longer ask prospective dates what their sign is, instead
your line is "Hi, what's your URL?"
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---