[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: VIM Question



On Sat, Apr 03, 2004 at 05:44:31PM -0600, Harold Crouch wrote:
> Let's say that I am using VIM to edit a text file and I want to
> replace mulitple occurrances of "fred" with "wilma."  What's the
> easiest way to do this?

:%s/fred/wilma/g

(That will replace them all.)

Steve
-- 
steve@silug.org           | Southern Illinois Linux Users Group
(618)398-7360             | See web site for meeting details.
Steven Pritchard          | http://www.silug.org/

-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.