Vim tip: view file state from a certain amount of time ago13 Feb 2016
I found a nice little productivity hack in vim:
This resets the file currently being edited to the state it was in 30 minutes ago.
Cool! You can also use
:earlier 30s for 30 seconds ago, and
for 30 hours ago.
:later 30m will reset the file back to the latest state.
Also: if you’re itching to go home early from work, just open the files you’re working
on for the day and try