Maybe finally properly fix undodir

This commit is contained in:
Anthony Cicchetti 2020-11-09 11:01:46 -05:00
parent c2c6e82c54
commit 5f4c8b507a

View file

@ -43,10 +43,10 @@ if has('nvim')
endif
if has("persistent_undo")
if !isdirectory("$HOME" . "/.undodir")
call mkdir("$HOME" . "/.undodir", "p", 0770)
if !isdirectory($HOME . "/.undodir")
call mkdir($HOME . "/.undodir", "p", 0770)
endif
set undodir="$HOME" . "/.undodir//"
set undodir=~/.undodir/
set undofile
augroup undodir
autocmd!