Last Updated: February 25, 2016
·
724
· hoest

Loving Vim's persistent undo

Add this to your .vimrc and create the 'undo' directory:

set undofile
if has('win32') || has('win64')
  set undodir=$HOME/vimfiles/undo
else
  set undodir=$HOME/.vim/undo
endif

set undolevels=1000
set undoreload=10000