RE: VI Editor spacing question...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?
> 
> Thanks,
> 
> Jake McHenry
> Nittany Travel MIS Coordinator
> http://www.nittanytravel.com


I figured it out, 1,$s/^/  /g



Jake McHenry
Nittany Travel MIS Coordinator
http://www.nittanytravel.com


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux