On Fri, Apr 14, 2006 at 07:25:49PM -0700, Arias Hung wrote:
> I'm having trouble replacing question marks that appear in a text file.  
> Backslash escaping to literalize it doesn't seem to be working for me:
> 
> With a command like this:
> 
> :1,$s/\?//g
> 
> I get this error:
> 
> E64: \? follows nothing
> E476: Invalid command
> 
> This is using version vim version 6.4.
> 
> 
> If someone could take a moment to shed some light on this for me, it would 
> be greatly appreciated.
> 
> Thanks in advanced.

     Have you tried *not* escaping them?

:s/?//g

You can also read

:help pattern-overview

which starts a couple of lines above

:help E64

as suggested by the error message you quoted.

HTH                                     --Benji Fisher

Reply via email to