4 ms·
:update is like :w but only writes when changes are made. While we're at it :earlier and :later are undo/redo but instead of using an undo stack they use chang
by tipsytoad 4y ago
:update is like :w but only writes when changes are made.
While we're at it :earlier and :later are undo/redo but instead of using an undo stack they use change points in time, so your undo history is never overwritten :)
- lucb1e 4y ago:earlier 30s is such a life saver when you've messed up the standard undo/redo order (u and ctrl+r). I need it so rarely that I have a hard time remembering what the command was again whenever I need it. Needed it a few weeks ago, so now it's at the front of my mind again :D