3 ms·
The tree in vim is weird and hidden. Basically there is an operation to go from a state to the state from which it was derived (“up the tree”) and an operation
by dan-robertson 7y ago
The tree in vim is weird and hidden. Basically there is an operation to go from a state to the state from which it was derived (“up the tree”) and an operation to go forward/backward in time (of state creation), which is basically navigation in changenum space. Ie if you make some changes:
A -> B -> C -> D
Undo:
A -> B
Make some other changes:
A -> B -> E
Then undo takes you up the ABE chain but if you use g- and g+, you navigate through the list ABCDE
- aasasd 7y ago> g- and g+ Those are the operations, yeah! They went a long way for me. I think there's also a command or a third-party addon to see the undo states, in the undo-tree spirit—but surprisingly I've never needed it.