Commit 464c8212 authored by Renken's avatar Renken

fix cannot create vundodir directory

parent 292f6445
......@@ -297,7 +297,9 @@ set nowrap
" Enable persistent undo if it is supported
if has('persistent_undo')
let vundodir = expand('~/.vim/undo')
call mkdir(vundodir, "p")
if !isdirectory(vundodir)
call mkdir(vundodir)
let &undodir = vundodir
set undofile
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment