From owner-freebsd-questions@FreeBSD.ORG Fri Feb 19 21:45:49 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 550211065670 for ; Fri, 19 Feb 2010 21:45:49 +0000 (UTC) (envelope-from bill@celestial.com) Received: from dorsai-02.celestial.com (dorsai-02.celestial.com [192.136.111.19]) by mx1.freebsd.org (Postfix) with ESMTP id 014228FC08 for ; Fri, 19 Feb 2010 21:45:48 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by dorsai-02.celestial.com (Postfix) with ESMTP id D9513205EAA9 for ; Fri, 19 Feb 2010 13:45:47 -0800 (PST) X-Virus-Scanned: amavisd-new at celestial.com Received: from dorsai-02.celestial.com ([127.0.0.1]) by localhost (dorsai-02.celestial.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id KE0hIul6IfoI for ; Fri, 19 Feb 2010 13:45:47 -0800 (PST) Received: from ayn.mi.celestial.com (hayek.celestial.com [192.136.111.12]) by dorsai-02.celestial.com (Postfix) with ESMTP id 7CBEB205EA92 for ; Fri, 19 Feb 2010 13:45:47 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by ayn.mi.celestial.com (Postfix) with ESMTP id 2435568000E08; Fri, 19 Feb 2010 13:45:47 -0800 (PST) X-Virus-Scanned: amavisd-new at mi.celestial.com Received: from ayn.mi.celestial.com ([127.0.0.1]) by localhost (ayn.mi.celestial.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id YFnoeZ1DGBV5; Fri, 19 Feb 2010 13:45:47 -0800 (PST) Received: by ayn.mi.celestial.com (Postfix, from userid 203) id 096F768000E07; Fri, 19 Feb 2010 13:45:47 -0800 (PST) Date: Fri, 19 Feb 2010 13:45:46 -0800 From: Bill Campbell To: freebsd-questions@freebsd.org Message-ID: <20100219214546.GC29816@ayn.mi.celestial.com> Mail-Followup-To: freebsd-questions@freebsd.org References: <89925.34821.qm@web52106.mail.re2.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <89925.34821.qm@web52106.mail.re2.yahoo.com> User-Agent: Mutt/1.5.19 OpenPKG/% (2009-01-05) Subject: Re: vi question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@celestial.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2010 21:45:49 -0000 On Fri, Feb 19, 2010, gahn wrote: >Hi, all: > >How could I use vi to repeat a word, say, 100 times in the same line, of >course with a space in between? Use a repeat count. The following is generated by this: 20a thisword thisword thisword thisword thisword thisword thisword thisword thisword thisword thisword thisword thisword thisword thisword thisword thisword thisword thisword thisword thisword I use this frequently to generate sequences of characters when laying out forms. Bill -- INTERNET: bill@celestial.com Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way Voice: (206) 236-1676 Mercer Island, WA 98040-0820 Fax: (206) 232-9186 Skype: jwccsllc (206) 855-5792 When we must wait for Washington to tell us when to sow and when to reap, we shall soon want bread -- Thomas Jefferson