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

fix(option): check packpath option

This commit is contained in:
wsdjeg 2023-03-11 22:50:18 +08:00
parent 5cf632446b
commit e96ea26df6

6
vimrc
View File

@ -12,8 +12,10 @@ if !empty($XDG_CONFIG_HOME)
set runtimepath+=$XDG_DATA_HOME/vim
set runtimepath+=$XDG_CONFIG_HOME/vim/after
set packpath^=$XDG_DATA_HOME/vim,$XDG_CONFIG_HOME/vim
set packpath+=$XDG_CONFIG_HOME/vim/after,$XDG_DATA_HOME/vim/after
if exists('&packpath')
set packpath^=$XDG_DATA_HOME/vim,$XDG_CONFIG_HOME/vim
set packpath+=$XDG_CONFIG_HOME/vim/after,$XDG_DATA_HOME/vim/after
endif
let g:netrw_home = $XDG_DATA_HOME."/vim"
if !isdirectory($XDG_DATA_HOME."/vim")