On Wed, Sep 19, 2001 at 10:34:53PM +0200, Piet Delport wrote:
> On Wed, 19 Sep 2001 at 10:57:14 -0400, Miguel Farah F. wrote:
> > Andy Smith [19/09/2001 10:53] dijo/said:
> > >On Wed, Sep 19, 2001 at 10:30:49AM -0400, Miguel Farah F. wrote:
> > >
> > >> It'd be nice if there was a ":repeat" command that... well...
> > >> repeats the last command as if it had been just retyped.
> > >
> > >Usually you can press the up arrow to scroll back through the
> > >previous commands?
> >
> > The up and down arrows are binded to the previous-undeleted and
> > next-undeleted commands...
>
> Not while in the command-line editor (after pressing `:'), they're not.
>
> Unless you mean you've explicitly re-bound them as:
>
> bind editor <up> <previous-undeleted>
> bind editor <down> <next-undeleted>
You could make a macro that does:
'<enter-command><history-up>\r'
Now, that would only affect commands that you have entered on the
command line, which is not exaclty what _I_ want to have (I can't see a
lot of use for repeating commands that way). But if that is what you
are wanting to repeat, then that should do it.
I would like a command that could repeat the last command... So If I
had just hit 's' to save a message to another mailbox, I could hit '.',
and save another message to that same mailbox. (think vi)
/db