Maybe finally properly fix undodir
This commit is contained in:
parent
c2c6e82c54
commit
5f4c8b507a
1 changed files with 3 additions and 3 deletions
|
@ -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!
|
||||
|
|
Loading…
Add table
Reference in a new issue