Re: VI Editor spacing question...

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

 



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?

:%s/^/  /

-- 
 // 2   _____________________________________________________________ 
//     /                                                             \
\\/ /  | Cheer Up! Things are getting worse at a slower rate.        |
 \\/   \_________________________________  __________________________/
        Ewan Edwards {e^2}, e@xxxxxxxxxx |/


-- 
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