Each time when I open another file in Vim all editing history disappears. Is it possible to configure Vim that it would automatically save and restore file editing history when hopping through files?
How to cache file editing history in Vim, that it would not disappear after switching the file?
undo redo;persistent state;command history
What I do is add the following to my .vimrc:set undofileset undodir=~/.vim/undo/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.