From: Ken Goldman <kgold@watson.ibm.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs and vim analogs
Date: Thu, 01 Mar 2007 09:46:13 -0500 [thread overview]
Message-ID: <45e836f2$1@news.greennet.net> (raw)
In-Reply-To: <qgtma4-77m.ln1@avaloon.forwiss.uni-passau.de>
M G Berberich wrote:
>>"Clinton Curry" <clintonc@uab.edu> writes:
>
>>>2) Redo-last-change. In Vim, if you make a change, pressing "."
>>>will make the change again. Is there something analogous in Emacs,
>>>aside from defining a macro?
>>
>>Either C-x M-ESC or C-x z, depending on your requirements.
>
>
> You probably mean C-x ESC ESC or C-x M-: . C-x M-ESC simply quits my
> emacs. But both are not doing what '.' does in vim. With vims . you
> can repeate commands like “replace next three word with …”, “indent 5
> lines”, “append … to line” or “replace rest of line with …”
> (where … stands for some text). This is not possible with emacs
> because there is no implicit grouping of inserted characters, so C-x z
> repeats the last character typed, which is completely useless.
The statement "This is not possible with emacs" is typically false.
Complex commands such as you describe are easily done with keyboard
macros. There are so useful that I have the start, end, and execute
functions assigned to function keys.
next prev parent reply other threads:[~2007-03-01 14:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.4699.1171822764.2155.help-gnu-emacs@gnu.org>
2007-02-18 19:03 ` Emacs and vim analogs David Kastrup
2007-02-18 21:36 ` M G Berberich
2007-03-01 14:46 ` Ken Goldman [this message]
2007-03-01 15:44 ` Lennart Borgman (gmail)
2007-02-18 18:19 Clinton Curry
2007-02-18 19:30 ` Lennart Borgman (gmail)
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='45e836f2$1@news.greennet.net' \
--to=kgold@watson.ibm.com \
--cc=help-gnu-emacs@gnu.org \
/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).