mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:10:04 +08:00
fix(option): check packpath option
This commit is contained in:
parent
5cf632446b
commit
e96ea26df6
2
vimrc
2
vimrc
@ -12,8 +12,10 @@ if !empty($XDG_CONFIG_HOME)
|
|||||||
set runtimepath+=$XDG_DATA_HOME/vim
|
set runtimepath+=$XDG_DATA_HOME/vim
|
||||||
set runtimepath+=$XDG_CONFIG_HOME/vim/after
|
set runtimepath+=$XDG_CONFIG_HOME/vim/after
|
||||||
|
|
||||||
|
if exists('&packpath')
|
||||||
set packpath^=$XDG_DATA_HOME/vim,$XDG_CONFIG_HOME/vim
|
set packpath^=$XDG_DATA_HOME/vim,$XDG_CONFIG_HOME/vim
|
||||||
set packpath+=$XDG_CONFIG_HOME/vim/after,$XDG_DATA_HOME/vim/after
|
set packpath+=$XDG_CONFIG_HOME/vim/after,$XDG_DATA_HOME/vim/after
|
||||||
|
endif
|
||||||
|
|
||||||
let g:netrw_home = $XDG_DATA_HOME."/vim"
|
let g:netrw_home = $XDG_DATA_HOME."/vim"
|
||||||
if !isdirectory($XDG_DATA_HOME."/vim")
|
if !isdirectory($XDG_DATA_HOME."/vim")
|
||||||
|
Loading…
Reference in New Issue
Block a user