unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Sébastien Kirche" <sebastien.kirche.no@spam.free.fr.invalid>
Subject: Re: simgle repeat?
Date: Tue, 12 Apr 2005 02:16:10 +0200	[thread overview]
Message-ID: <85zmw4n92t.fsf@obelix.seki.fr> (raw)
In-Reply-To: mailman.1120.1113260612.2895.help-gnu-emacs@gnu.org

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

       reply	other threads:[~2005-04-12  0:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1120.1113260612.2895.help-gnu-emacs@gnu.org>
2005-04-12  0:16 ` Sébastien Kirche [this message]
2005-04-12  0:31   ` simgle repeat? Rui Tiago Matos
2005-04-12  1:01 ` Barry Margolin
2005-04-12  2:07   ` Angelina Carlton
     [not found]   ` <mailman.1129.1113271432.2895.help-gnu-emacs@gnu.org>
2005-04-12 11:52     ` Pascal Bourguignon
2005-04-12 18:28 ` kgold
2005-04-12 18:25   ` Rui Tiago Matos
2005-04-11 23:32 Rui Tiago Matos
2005-04-12 10:58 ` Peter Dyballa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=85zmw4n92t.fsf@obelix.seki.fr \
    --to=sebastien.kirche.no@spam.free.fr.invalid \
    --cc=sebastien.kirche@free.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).