I have to replace every occurrence of % in a file with
% |. I have been effectively replacing text using the
following construct:

:%s/\<text\>/replacement/g

However when I try to do the following:

:%s/\<%\>/% |/g 

I am greeted by an error message. Obviously, the %
character needs to be treated differently for being
replaced. Escap sequence? I cannot figure out how to
do it. May be trivial for the gurus here. I will be 
thankful for a hint.

Many thanks in advance.

--
Muhammad Farooq-i-Azam 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to