On Wed, Oct 15, 2003 at 04:02:29PM -0400, Jake McHenry wrote: > > Does anyone know of a way in the vi editor that I can add 2 spaces > infront of each and every line in a file? I know how to remove them, > 1,$s/ //g ... But how can I add them back? > First the g in the above command will remove all occurances of two spaces on a line. You should not have the g. I think what you want to do can be done with: 1,$s/^/ / -- ------------------------------------------- Aaron Konstam Computer Science Trinity University 715 Stadium Dr. San Antonio, TX 78212-7200 telephone: (210)-999-7484 email:akonstam@xxxxxxxxxxx -- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list