How can I tell vim to not tread & and ~ in a special way when using
substitute?

compare
        echo substitute(substitute('a','a','b','&'),'b','c &','') 
and
        echo substitute(substitute('a','a','b','&'),'b',substitute('c 
&','\V\(&\|~\)','\\\1','g'),'') 
using substitute works but seems to be more ugly when used in scripts?

Marc

Reply via email to