From: "Drew Adams" <drew.adams@oracle.com>
To: "'Harry Putnam'" <reader@newsguy.com>, <help-gnu-emacs@gnu.org>
Subject: RE: make undo operate as in (no flames please) vim
Date: Sun, 25 Jan 2009 09:02:38 -0800 [thread overview]
Message-ID: <003501c97f0e$ba8c8210$0200a8c0@us.oracle.com> (raw)
In-Reply-To: <87vds3miqt.fsf@newsguy.com>
> You've hit on one of the reasons I had grown to dread using undo.
>
> I resorted to the prefix arg to eliminate possibly dozens of C-x u
> presses which inevitably would lead sooner or later to hitting
> `C-x-u', the dread upcase-region that totally disrupts the work flow.
> And, like you guessed... there'd come a point where I'd have to figure
> out if I'd passed the goal, and by then it wasn't unlikely that I'd be
> somewhat confused about what was or wasn't undone.... Then the whole
> thing with arrow keys to indicate which way to go with undo can get
> pretty confusing too.
Dunno what you mean by "the thing with arrow keys". Maybe that is something new
that I am unaware of.
The general rule is that undo just undoes. Including undoing what it itself did.
That means that to seemingly go backwards you need only do something other than
undo, then start doing undo again.
Example: C-/ C-/ C-/ SPC C-/ C-/
Hitting the space bar (or some other key, such as an arrow key) stops undoing.
Then hitting C-/ again undoes the space char insertion and starts undoing the
undo's that you did previously.
In this way, you can seemingly go backwards and forwards, like rewinding a
movie. You are not actually rewinding it, however: everything you do is added to
the undo chain. It's just that the undo chain then itself has back and forth
actions.
That's not a clear explanation - sorry. But if you try it you'll see what I
mean, I think.
This page might also help:
http://www.emacswiki.org/emacs/CategoryUndo
> Now if only I can break the ingrained habit of using C-x u....
;-)
And I do hope someone helps you find the Vim-like behavior you really want.
next prev parent reply other threads:[~2009-01-25 17:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-25 0:43 make undo operate as in (no flames please) vim Harry Putnam
2009-01-25 1:04 ` Drew Adams
2009-01-25 16:51 ` Harry Putnam
2009-01-25 17:02 ` Drew Adams [this message]
2009-01-25 18:16 ` Samuel Wales
2009-01-25 19:29 ` Drew Adams
2009-01-25 19:53 ` Samuel Wales
[not found] ` <mailman.5772.1232907408.26697.help-gnu-emacs@gnu.org>
2009-01-25 19:59 ` David Kastrup
2009-01-25 20:55 ` Samuel Wales
2009-01-28 15:14 ` Ken Goldman
2009-01-28 20:21 ` Samuel Wales
[not found] <mailman.5688.1232844257.26697.help-gnu-emacs@gnu.org>
2009-01-25 7:41 ` Xah Lee
2009-01-25 8:28 ` Andreas Politz
2009-01-25 16:59 ` Harry Putnam
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='003501c97f0e$ba8c8210$0200a8c0@us.oracle.com' \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=reader@newsguy.com \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.