在emacs中快速(重复)撤消可能吗? [英] Is fast (repeated) undo possible in emacs?
问题描述
(对不起,这可能是一个愚蠢的问题,但是我没有发现任何关于它的问题互联网,而它应该是任何编辑器的基本功能)。
要调用每个撤消步骤,我需要按Ctrl-x,然后按u。
但是如果我已经做了200步,我想撤消它们,那么我的手和手指会重复Ctrl-x,然后重复200次就会产生可怕的痛苦,所以说这个操作大约需要5分钟
在Microsoft Word中,例如(以及许多其他编辑器),撤消是Ctlr-Z,但您可以按住Ctlr-Z和多个撤消步骤运行快速。这可以在emacs中实现吗?
按住 Alt ,键入 2 0 0 ,然后按 CTRL + x u 。
这将为您要下一步执行的操作(例如撤消)提供200的参数,所以它应用该操作200次。
顺便说一句,如果您想使用较少的击键, CTRL + / 也映射到撤消。
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?
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.
这篇关于在emacs中快速(重复)撤消可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!