Vim persistent undo history
When vim is compiled with the +persistent_undo feature, add the following lines into your .vimrc to get persistent undo history.
set undodir=~/.vim/undo/
set undofileDon't forget to make the directory if it doesn't exist!
$ mkdir ~/.vim/undoEnjoy it! :p
Written by dm4
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#

 
 
 
