Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
When I open another file in a Vim session all editing history for the other files disappears.
Is it possible to configure Vim that it would automatically save and restore file editing history when hopping through files?
What I do is add the following to my .vimrc:
That way all your undo/change tree information is saved across vim sessions, and next time you open your file you can still undo/redo old edits.
Required, but never shown