[Cialug] vi substituting

Todd Walton tdwalton at gmail.com
Sat Jan 26 11:02:52 CST 2008


On Jan 26, 2008 10:55 AM, Colin Burnett <cmlburnett at gmail.com> wrote:
> The s command applies to only the current line.  You must specify a
> range for the s command to work on more than the current line
>
> :%s/.../.../

Damn!  I was thinking the /g meant all lines, not the whole line.  I
really gotta look this stuff up before I go firing off commands.

-todd


More information about the Cialug mailing list