On Wed, Oct 27, 2004 at 10:10:07AM -0700, Jon Beck wrote: > > is there a way to replace all in a file? > > :1,$s/old/new/g
Even shorter than 1,$ (line 1 to the end) is % which matches all lines. So :%s/old/new/g -- Don Bindner <[EMAIL PROTECTED]> ----------------------------------------------------------------- To get off this list, send email to [EMAIL PROTECTED] with Subject: unsubscribe -----------------------------------------------------------------
