help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs and vim analogs


From: Ken Goldman
Subject: Re: Emacs and vim analogs
Date: Thu, 01 Mar 2007 09:46:13 -0500
User-agent: Mozilla/5.0 (X11; U; AIX 000C89FF4C00; en-US; rv:1.7) Gecko/20040617

M G Berberich wrote:
"Clinton Curry" <address@hidden> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]