Configuring Vim undotree

You need to configure it in your vimrc file, by adding the following:

" save undo trees in files
set undofile
set undodir=~/.vim/undo

" number of undo saved
set undolevels=10000

https://thevaluable.dev/vim-intermediate/

/undo/ /tree/ /editors/ /vimrc/