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:
parent
3894f366ec
commit
996a79fb11
3
vimrc
3
vimrc
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user