by vaylian · 4y ago · 0 comments
There's always [u]ndo. Or you can use
:earlier 2m
to go back 2 minutes in time.
Honestly this is single-handed my favorite thing about vim.
Not the ability to fluently traverse through text (and apparently time).
But that you can use it for a almost decade, and still have a stranger on the internet blow your mind with simple features you didn't know existed. There's so many of those one-off commands that are so useful, yet you've somehow never heard of them?
Wut.
~27 years of using vim, you just blew my mind.
I normally use u (undo) though.
If you have `set backupdir` enabled, any and all savepoints on a file are backed up with timestamps and a revision number.