How can I undo all changes to a block of text in vim?

馋奶兔 提交于 2020-01-21 11:48:28

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/2236099/how-can-i-undo-all-changes-to-a-block-of-text-in-vim

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!