editor - Vim command to reset to the oldest change? -


I am a VIM user and sometimes I've made several changes to a file but then want to come back in the beginning. : Many times, so I ask you to have a shortcut to get the "oldest change"?

Cheers!

Rodrigo Alves Vieira | @Radrigo3n

The keystroke to undo u ; If you are pressing : u then there is a lot more key (though it works, it has four keys instead of one). Usually I will just press U and repeat the trick twice (note that unlike Ctrl + R u if you go < ..

You can reload the disc from the last saved version using : e! .


Comments