@forteller I think both vim and emacs has undo trees, the fun thing in vim is that you can time-travel, so you can say give me the file how it was 15 minutes ago.