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
--6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 15, 2010 at 12:11:32PM -0600, J.D. Bronson wrote: > preface each line: >=20 > :%s/^/new word /g The trailing g isn't needed because you only need one substitution on each line. Thus: :%s/^/new word / --=20 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAktQr74ACgkQ9mn/Pj01uKVG/QCfeiU532Q0YZTLIFejJ2OIwRkE b5oAoOU58+ebDCahL6SOUA9gCcO3b6pD =q4s+ -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100115181110.GA52842>