Closed msunith closed 5 years ago
what about use $VIMPATH
? or we can judge whether$XDG_CONFIG_HOME
is set.if set use it .
Good points. Give me some time. I will update the pull request
set the $CONFIG
let $PLUGINCONFIGPATH = expand(($XDG_CONFIG_HOME ? $XDG_CONFIG_HOME : $VIMPATH).'/core/plugins')
then in yaml we can use it like this
- repo: xxx/xxx
hook_source: $PLUGCONFIGPATH/xxx.vim
use $VIMPATH
, so you can git clone to your XDG_CONFIG
Better to use the env var XDG_CONFIG_HOME instead of hardcoded path ~/.config. Will be useful for people who like to create vim config files under custom location