Commit 5d5d4009 authored by Renken's avatar Renken

fix cannot create vundodir directory

parent 292f6445
......@@ -114,6 +114,9 @@ call plug#end()
" General
" Use the clipboard for all operations (must install clipboard tool)
set clipboard+=unnamedplus
" Turn off vi compatibility.
set nocompatible
......@@ -297,7 +300,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, "p")
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