On Tue, Dec 05, 2006 at 06:55:04PM -0300, Alvaro Herrera wrote:
> +1 on the !<num>, but I agree with Tom that the ! had better be a \
> command (and \! is already taken).
Extend \r maybe, so \r on it's own clears the buffer whereas \r ###
will load it with history entry ###. Mnemonic; r=retrieve command
Silly: You could even do \r xyz and load the buffer with the last line
beginning xyz
(this would parallel the "r" command in Korn Shell which does
history in this way; "r 10" would rerun history entry 10; "r ls" would
redo the last ls command).
--
rgds
Stephen