[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: simgle repeat?
From: |
Sébastien Kirche |
Subject: |
Re: simgle repeat? |
Date: |
Tue, 12 Apr 2005 02:16:10 +0200 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) |
Le 12 avr 2005, Rui Tiago Matos vraute :
> One vim feature which is really handy (and my vim user house mate is
> always teasing me about :-) is the single repeat command aka "dot" or
> "."[1]
>
> So is there anyway to have anything like it in emacs?
You can prefix a command, or a single key press with the universal argument
C-u :
,----[ C-h k C-u ]
| C-u runs the command universal-argument
| which is an interactive compiled Lisp function in `simple'.
| It is bound to C-u.
| (universal-argument)
|
| Begin a numeric argument for the following command.
| Digits or minus sign following C-u make up the numeric argument.
| C-u following the digits or minus sign ends the argument.
| C-u without digits or minus sign provides 4 as argument.
| Repeating C-u without digits or minus sign
| multiplies the argument by 4 each time.
| For some commands, just C-u by itself serves as a flag
| which is different in effect from any particular numeric argument.
| These commands include C-@ and M-x start-kbd-macro.
|
| [back]
`----
For example : C-u 25 . gives 25 dots : .........................
HTH.
--
Sébastien Kirche