vi editing
Boris Samorodov
bsam at ipt.ru
Fri Jan 15 18:13:47 UTC 2010
On Fri, 15 Jan 2010 07:37:49 -0800 (PST) gahn wrote:
> 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
Type this:
:%s/^/"new word" /
> after that, I want to have:
> "new word" xxxxxxxxx
> "new word" xxxxxxxxx
> "new word" xxxxxxxxx
> How could I do that with vi?
--
WBR, Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
More information about the freebsd-questions
mailing list