> 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?

You may be interested both in the 'magic' setting, and the 
optional search atoms to control it ("\V" and family).

   :help /magic
   :help 'magic'

-tim




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

Reply via email to