Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Sep 2013 00:23:27 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Gary Kline <kline@thought.org>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130926002327.6502d1b9.freebsd>