1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:40:05 +08:00

Fix make dir function

Fix #1461
This commit is contained in:
Wang Shidong 2018-03-30 14:03:18 +08:00 committed by GitHub
parent dec83f87d5
commit c985a4aaf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,16 +79,16 @@ function! SpaceVim#default#options() abort
let g:swap_dir = g:data_dir . 'swap'
let g:undo_dir = g:data_dir . 'undofile'
if finddir(g:data_dir) ==# ''
silent call mkdir(g:data_dir)
silent call mkdir(g:data_dir, 'p', 0700)
endif
if finddir(g:backup_dir) ==# ''
silent call mkdir(g:backup_dir)
silent call mkdir(g:backup_dir, 'p', 0700)
endif
if finddir(g:swap_dir) ==# ''
silent call mkdir(g:swap_dir)
silent call mkdir(g:swap_dir, 'p', 0700)
endif
if finddir(g:undo_dir) ==# ''
silent call mkdir(g:undo_dir)
silent call mkdir(g:undo_dir, 'p', 0700)
endif
unlet g:data_dir
unlet g:backup_dir