Reputation: 1595
I use emacs and I have a problem with it's undo.
(Sorry, maybe this is a stupid question, but I did not find anything about it in the internet, whilst it should be a basic functionality of any editor).
To invoke each undo step I need to press 'Ctrl-x' and then 'u'. But if I have done 200 steps and I wish to undo them, my hand and fingers get horrible pain from repeating 'Ctrl-x' and then 'u' 200 times, to say nothing that this operation takes about 5 minutes.
In Microsoft Word, for example (and also in many other editors) undo is Ctlr-Z, but you can press and hold Ctlr-Z and multiple undo steps run fast. Is this achievable in emacs?
Upvotes: 27
Views: 4320
Reputation: 17375
Undo tree is a mode to navigate in the history of recent changes. I think it's better to use this mode for deep undos
Upvotes: 4
Reputation: 6177
Hold down Alt, type 2 0 0, then press CTRL+x u.
This gives an argument of 200 to the operation you are going to perform next (e.g. undo), so it applies that operation 200 times.
By the way, CTRL+/ is also mapped to "undo", if you would like to use fewer keystrokes.
Upvotes: 23
Reputation: 13616
ctrl + / is essentially the same as the MS Word functionality.
Upvotes: 18
Reputation: 1595
Finally I found additional way of doing so: C-x u C-x z z z z z
But ctrl / is easier.
Many thanks to brbcoding
Upvotes: 5