On Fri, 15 Jan 2010 07:37:49 -0800 (PST), gahn <ipfr...@yahoo.com> wrote:
> Hi gurus:
>
> I am trying to add a word on every line (right in front of every line) via 
> vi. Right now I have:
>
> xxxxxxxxx
> xxxxxxxxx
> xxxxxxxxx
>
> after that, I want to have:
>
> "new word" xxxxxxxxx
> "new word" xxxxxxxxx
> "new word" xxxxxxxxx
>
> How could I do that with vi?

    :%s/^/new word /

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to