Is there any way (like plug-in) to undo changes in Vim buffer according to time, like undo the changes in the last 30 minutes, or undo changes after 2pm today? I just found [count]u
is not that useful for some change sequence which is a little long.
To go back to a state of some earlier time you can use :earlier
, e.g. to go back 30 minutes
:earlier 30m
:earlier
takes relative times so to go back to a state at a certain time you would need to do the calculation yourself (but you could wrap that in a custom function).
To explore the undo tree plugins like Gundo can be very handy.
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