Date: Fri, 15 Jan 2010 11:11:10 -0700 From: Chad Perrin <perrin@apotheon.com> To: freebsd general questions <freebsd-questions@freebsd.org> Subject: Re: vi editing Message-ID: <20100115181110.GA52842@guilt.hydra> In-Reply-To: <4B50AFD4.2000808@sbcglobal.net> References: <723540.47549.qm@web52106.mail.re2.yahoo.com> <4B50AFD4.2000808@sbcglobal.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Fri, Jan 15, 2010 at 12:11:32PM -0600, J.D. Bronson wrote:
> preface each line:
>
> :%s/^/new word /g
The trailing g isn't needed because you only need one substitution on
each line. Thus:
:%s/^/new word /
--
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)
iEYEARECAAYFAktQr74ACgkQ9mn/Pj01uKVG/QCfeiU532Q0YZTLIFejJ2OIwRkE
b5oAoOU58+ebDCahL6SOUA9gCcO3b6pD
=q4s+
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100115181110.GA52842>
