如何在 vim 中撤消对文本块的所有更改? [英] How can I undo all changes to a block of text in vim?

查看:25
本文介绍了如何在 vim 中撤消对文本块的所有更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以选择一些带有视觉线条的文本并撤消从一开始就对其进行的所有更改?

Is it possible to select some text with visual line and undo all changes made to it from the beginning ?

推荐答案

我实际上是通过撤消所有拉动块然后重做所有内容到最后修改然后用拉动文本替换块来做到这一点的.

I actually do that by undoing everything yanking the block then redoing everything to the last modification and then replacing the block with the yanked text.

这篇关于如何在 vim 中撤消对文本块的所有更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆