From owner-freebsd-questions@FreeBSD.ORG Thu Sep 26 00:22:37 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C24278C7 for ; Thu, 26 Sep 2013 00:22:37 +0000 (UTC) (envelope-from kline@thought.org) Received: from p3plsmtpa09-06.prod.phx3.secureserver.net (p3plsmtpa09-06.prod.phx3.secureserver.net [173.201.193.235]) by mx1.freebsd.org (Postfix) with ESMTP id A290E2F49 for ; Thu, 26 Sep 2013 00:22:37 +0000 (UTC) Received: from ethic.thought.org ([209.180.213.209]) by p3plsmtpa09-06.prod.phx3.secureserver.net with id VcLz1m00M4XeM0101cLzgo; Wed, 25 Sep 2013 17:21:01 -0700 Date: Wed, 25 Sep 2013 17:21:04 -0700 From: Gary Kline To: Polytropon Subject: Re: minor vi/vim qstn Message-ID: <20130926002104.GA12932@ethic.thought.org> References: <20130925212741.GA19434@ethic.thought.org> <20130926002327.6502d1b9.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130926002327.6502d1b9.freebsd@edvax.de> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: FreeBSD Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Sep 2013 00:22:37 -0000 Organization: Thought Unlimited. Public service Unix since 1986. Of_Interest: With 27 years of service to the Unix community. On Thu, Sep 26, 2013 at 12:23:27AM +0200, Polytropon wrote: > On Wed, 25 Sep 2013 14:27:41 -0700, Gary Kline wrote: > > am I misremembering this feature, or didnt vi have a syntax where > > you typed something like: > > > > % vi[#] or % vi [-2] [or vi [-N] > > > > to repeat the last or the second from last command? with my > > shoulder sore bloody sore I need to save every key stroke. > > To repeat the last command, "." can be used. > > The vi editor (and probably vim and gvim) supports > according to "man vi": > > [Vi]i[sual][!] [+cmd] [file] > Vi mode only. Edit a new file. > > Is this what you're searching for? I THOGoHT it was "!", but lookit: pts/14 17:11 [5010] vi sent pts/14 17:11 [5011] vi! zsh: command not found: vi! pts/14 17:12 [5012] ....... this is vi == vim. AHA:: found it. it's [bang] pts/14 17:17 [5016] vi sent pts/14 17:17 [5017] !v I'll tell ya, if vi disappeared , I'd end it all! tx. gary > Or do you refer to command lines where "@:" would repeat the -N T- 34/41: P> last command (started with ":")? > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix Twenty-seven years of service to the Unix community. http://www.thought.org/HOPE