Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!samsung!usc!elroy.jpl.nasa.gov!ncar!gatech!ukma!neil From: neil@ms.uky.edu (Neil Greene) Newsgroups: comp.unix.misc Subject: Re: A question on .exrc while using vi Keywords: exrc vi Message-ID: Date: 4 Dec 90 18:46:08 GMT References: <5315@graphite20.UUCP> <13458@chaph.usc.edu> Organization: University of Kentucky Computing Center Lines: 17 Use the change command from within vi at the command prompt: :[x,y]s/

// In the above example 1) [x,y] are optional and may be replaced with line number values to restrict the range of the change command. 2) p is the pattern you are changing 3) r is the pattern you want to change to 4) f are optional flags of either 'g' for global change or 'c' for confirm on each occurance.