Is there way to prevent Vim from clearing history after exiting Vim?
undotree setting for this -
:h undodir and
I have it like so:
" don't create root-owned files
" keep undo files out of the way
" actually use undo files
Despite the check for sudo user to not create a undo file owned by root, this sets few dirs for Vim to create undofile (first available will be used). Also this has
set undofile to make sure undofile will be used.
I just checked on some config file with UndoTree and there are changes made 11 days ago and I'm sure I did reboot my laptop in between at least 4 times.