Thread: Vim Regex
View Single Post
Old 02-21-2006, 09:10 AM   #12
jms
 
jms's Avatar

Name: jms
Title: ______
Status: Offline
Join Date: Jul 2005
Location: Pittsburgh,PA
Rate My Car: 105 / 340
Your Ride: 99 328I Convertible
Quote:
Originally Posted by ghost
Sorry I used vi as well. Solaris by default doesnt come with vim the question for search and replace is actually quite easy:

: %s/old value/new value/g ... the g for global replace

You are correct sir,
I would have also accepted
:1,$s/old value/new value/g

that question got me a job as an instructor and of all things for the MCSE course. They also had me developing the unix course, but it never got off the ground.
  Reply With Quote