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
Written by Jelle de Jong
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#