Supose I want to write a Vim tutorial, in which I have written many
times something like:

:%s#/\*(.*)\*/#//\1#g

And now I want to replace that by some other command. Using "\"
to indicate every sepecial character can be very cumbersome. Is
there an more direct way to do this, lets say, such as

s/{:%s#/\*(.*)\*/#//\1#g}/something else/

In this case I've put the {...} to indicate that I want to replace
exactly
that. Of course this don't work. Is there some similar alternative to
general replacements of exact strings without bothering if some
character is special or not?

The example above was only an example, this kind of functionality
I would find interesting in many other contexts.

Thanks,
Leandro.


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to