From owner-freebsd-questions@FreeBSD.ORG Wed Sep 25 22:23:42 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 60D84474 for ; Wed, 25 Sep 2013 22:23:42 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2610B2935 for ; Wed, 25 Sep 2013 22:23:41 +0000 (UTC) Received: from r56.edvax.de (port-92-195-74-65.dynamic.qsc.de [92.195.74.65]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id 3DA4A27711; Thu, 26 Sep 2013 00:23:33 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id r8PMNR47005407; Thu, 26 Sep 2013 00:23:27 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Thu, 26 Sep 2013 00:23:27 +0200 From: Polytropon To: Gary Kline Subject: Re: minor vi/vim qstn Message-Id: <20130926002327.6502d1b9.freebsd@edvax.de> In-Reply-To: <20130925212741.GA19434@ethic.thought.org> References: <20130925212741.GA19434@ethic.thought.org> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Sep 2013 22:23:42 -0000 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? Or do you refer to command lines where "@:" would repeat the last command (started with ":")? -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...