Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
for all the times that occurs in a file:
:1,$s/teh/the/ig
Dave Lloyd
On Tue, 4 Jan 2000, Buford, Rick wrote:
> for those of us less skilled in vi(but learning), could someone drop the lay
> person translation on that vi command?
>
> :%s/teh/the/ig<return>
> (teh/the is fairly obvious, but what's the rest mean?)
>
> Rick Buford
> Chief Clerk
> Medical Records - Transcription
> DC042.06 / 884-7452
> "Is it possible to write an unauthorized autobiography? "
>
>
> -----Original Message-----
> From: Mark Donnelly [mailto:EMAIL:PROTECTED]
> Sent: Tuesday, January 04, 2000 2:54 PM
> To: EMAIL:PROTECTED
> Subject: Re: [UUG/MLUG] xemacs question
>
>
>
>
> On Tue, 4 Jan 2000, Scott K. Laws wrote:
>
> > If I have a file open in xemacs is there some way to do the
> > equvilent of:
> > perl -e 's%teh%the%ig;' -pi filenamehere
>
> Yeah! Just hop into your vi-emulation mode (I don't know how to do this)
> and type the following:
>
> :%s/teh/the/ig<return>
>
> > with out actually doing that and reverting teh buffer?
>
> Was this an accident or a joke? ;)
>
> --Mark
>