if !isdirectory($HOME . "/.vim/undodir") call mkdir($HOME . "/.vim/undodir", "p") endif set undofile set undodir=~/.vim/undodir