Date: Fri, 15 Jan 2010 21:13:44 +0300 From: Boris Samorodov <bsam@ipt.ru> To: gahn <ipfreak@yahoo.com> Cc: freebsd general questions <freebsd-questions@freebsd.org> Subject: Re: vi editing Message-ID: <33917351@bb.ipt.ru> In-Reply-To: <723540.47549.qm@web52106.mail.re2.yahoo.com> (gahn's message of "Fri, 15 Jan 2010 07:37:49 -0800 (PST)") References: <723540.47549.qm@web52106.mail.re2.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?33917351>