From owner-freebsd-questions@FreeBSD.ORG Fri Jan 15 18:19:11 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2721A1065676 for ; Fri, 15 Jan 2010 18:19:11 +0000 (UTC) (envelope-from perrin@apotheon.com) Received: from outbound-mail-158.bluehost.com (outbound-mail-158.bluehost.com [67.222.39.38]) by mx1.freebsd.org (Postfix) with SMTP id D58268FC08 for ; Fri, 15 Jan 2010 18:19:10 +0000 (UTC) Received: (qmail 1237 invoked by uid 0); 15 Jan 2010 18:19:10 -0000 Received: from unknown (HELO box543.bluehost.com) (74.220.219.143) by outboundproxy5.bluehost.com with SMTP; 15 Jan 2010 18:19:10 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=apotheon.com; h=Date:From:To:Subject:Message-ID:Mail-Followup-To:References:Mime-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent:X-Identified-User; b=GlkSinrdpctopxbyLEC3nmgtzBBPt19nF+Qzs13fOMi8vEuplBIgQw037SQPB5bgvexEJgZ2nJ0Y9kqfllgaOyXrvlKJzz2SAP76fWFU9h2KVMN7xrw7YjjchzsGOfxK; Received: from c-24-8-180-234.hsd1.co.comcast.net ([24.8.180.234] helo=kukaburra.hydra) by box543.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NVqlI-00050m-VR for freebsd-questions@freebsd.org; Fri, 15 Jan 2010 11:19:10 -0700 Received: by kukaburra.hydra (sSMTP sendmail emulation); Fri, 15 Jan 2010 11:11:10 -0700 Date: Fri, 15 Jan 2010 11:11:10 -0700 From: Chad Perrin To: freebsd general questions Message-ID: <20100115181110.GA52842@guilt.hydra> Mail-Followup-To: freebsd general questions References: <723540.47549.qm@web52106.mail.re2.yahoo.com> <4B50AFD4.2000808@sbcglobal.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0" Content-Disposition: inline In-Reply-To: <4B50AFD4.2000808@sbcglobal.net> User-Agent: Mutt/1.4.2.3i X-Identified-User: {2737:box543.bluehost.com:apotheon:apotheon.org} {sentby:smtp auth 24.8.180.234 authed with ren@apotheon.org} Subject: Re: vi editing X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jan 2010 18:19:11 -0000 --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--