" Tell Vim to use an undo file
set undofile
" set a directory to store the undo history
set undodir=~/.vimundo/