----- Original Message ---- 
From: A.J.Mechelynck <[EMAIL PROTECTED]> 
To: Gene Kwiecinski <[EMAIL PROTECTED]> 
Cc: Tanoor Dieng <[EMAIL PROTECTED]>; vim@vim.org 
Sent: Thursday, November 30, 2006 12:48:06 PM 
Subject: Re: multiples search and replace in the same command? 


Gene Kwiecinski wrote: 
>> Hi, i'm trying to replace all occurrences of characaters like é, è, ê 
>> etc ... by their corresponding htmlentities. To do that, i use the 
>> following command: 
>> %s/é/\&eacute;/g 


I know you can use \| as a OR operator not sure how you would logically 
determine the correct htmlentities, though 

/é\|è 

>> The problem with that command is that i have to do that for all 
>> characters. I was wandering if there's a way to do it with only one 
>> command. 
> 

Sean Plank


 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

Reply via email to