1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 07:10:06 +08:00

fix(vim): fix vimrc mkdir function

This commit is contained in:
wsdjeg 2023-02-21 18:42:11 +08:00
parent 3894f366ec
commit 996a79fb11

3
vimrc
View File

@ -16,6 +16,9 @@ if !empty($XDG_CONFIG_HOME)
set packpath+=$XDG_CONFIG_HOME/vim/after,$XDG_DATA_HOME/vim/after
let g:netrw_home = $XDG_DATA_HOME."/vim"
if !isdirectory($XDG_DATA_HOME."/vim")
call mkdir($XDG_DATA_HOME."/vim", 'p')
endif
call mkdir($XDG_DATA_HOME."/vim/spell", 'p')
set backupdir=$XDG_STATE_HOME/vim/backup | call mkdir(&backupdir, 'p')