From e96ea26df67f57b1a1bab575f8376e14ee876016 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Sat, 11 Mar 2023 22:50:18 +0800 Subject: [PATCH] fix(option): check packpath option --- vimrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vimrc b/vimrc index d952e0771..69ccae4dc 100644 --- a/vimrc +++ b/vimrc @@ -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")