Tuesday, July 11, 2023

Re: vim: revert a specific change in the undo history

On Di, 11 Jul 2023, ping song wrote:

> say I've done 3 changes A, B, C.
> but I realized B is a big mistake. A and C is good.
> can I just delete change B, but keep A and C?

I believe this is not possible. What you can do is, copy the whole
buffer at state C, move back to state A and clear the buffer and paste
the content from State C (effectively creating a new change A->D)

Best,
Christian
--
Spielen ist eine Tätigkeit, die man gar nicht ernst genug nehmen kann.
-- Jacques Yves Cousteau

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/ZK2s5grxjaeJSaMa%40256bit.org.

No comments: