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?
Just move the cursor in any direction, and type C-x u again. Emacs redoes the last command you undid. You can repeat it to redo previous undos.
in plain emacs, to redo, just press Ctrl + g first then undo. Further undo will be redo. Press Ctrl + g again to reverse direction.
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.
ctrl + / is essentially the same as the MS Word functionality.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With