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
|
endif
|
||||||
|
|
||||||
if has("persistent_undo")
|
if has("persistent_undo")
|
||||||
if !isdirectory("$HOME" . "/.undodir")
|
if !isdirectory($HOME . "/.undodir")
|
||||||
call mkdir("$HOME" . "/.undodir", "p", 0770)
|
call mkdir($HOME . "/.undodir", "p", 0770)
|
||||||
endif
|
endif
|
||||||
set undodir="$HOME" . "/.undodir//"
|
set undodir=~/.undodir/
|
||||||
set undofile
|
set undofile
|
||||||
augroup undodir
|
augroup undodir
|
||||||
autocmd!
|
autocmd!
|
||||||
|
|
Loading…
Add table
Reference in a new issue