diff options
| author | jdhao <jdhao@hotmail.com> | 2020-09-27 20:34:33 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2020-09-27 20:34:33 +0800 |
| commit | e9c8c4c536a0fa5949ef83f79b60e7baafb0d858 (patch) | |
| tree | 2cfc64d629f13f3da0d4927b9735704c0349ca5b | |
| parent | a54a20d2996da9ebd0521a651a7fba5e268f7d1f (diff) | |
refactor: vim-plug install
| -rw-r--r-- | plugins.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins.vim b/plugins.vim index be031dd..e237122 100644 --- a/plugins.vim +++ b/plugins.vim @@ -9,7 +9,7 @@ scriptencoding utf-8 " The following script to install vim-plug is adapted from vim-plug " wiki: https://github.com/junegunn/vim-plug/wiki/tips#tips let g:vim_plug_fpath = expand(stdpath('data') . '/autoload/plug.vim') -if (g:is_win || g:is_mac) && empty(glob(g:vim_plug_fpath)) +if (g:is_win || g:is_mac) && !filereadable(g:vim_plug_fpath) if !executable('curl') echoerr 'Curl not available on your system, you may install vim-plug by yourself.' finish |
