mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
refactor: vim-plug install
This commit is contained in:
parent
a94be81fb5
commit
a54a20d299
@ -9,8 +9,7 @@ scriptencoding utf-8
|
|||||||
" The following script to install vim-plug is adapted from vim-plug
|
" The following script to install vim-plug is adapted from vim-plug
|
||||||
" wiki: https://github.com/junegunn/vim-plug/wiki/tips#tips
|
" wiki: https://github.com/junegunn/vim-plug/wiki/tips#tips
|
||||||
let g:vim_plug_fpath = expand(stdpath('data') . '/autoload/plug.vim')
|
let g:vim_plug_fpath = expand(stdpath('data') . '/autoload/plug.vim')
|
||||||
if g:is_win || g:is_mac
|
if (g:is_win || g:is_mac) && empty(glob(g:vim_plug_fpath))
|
||||||
if empty(glob(g:vim_plug_fpath))
|
|
||||||
if !executable('curl')
|
if !executable('curl')
|
||||||
echoerr 'Curl not available on your system, you may install vim-plug by yourself.'
|
echoerr 'Curl not available on your system, you may install vim-plug by yourself.'
|
||||||
finish
|
finish
|
||||||
@ -23,7 +22,6 @@ if g:is_win || g:is_mac
|
|||||||
autocmd VimEnter * PlugInstall --sync | quit |source $MYVIMRC
|
autocmd VimEnter * PlugInstall --sync | quit |source $MYVIMRC
|
||||||
augroup END
|
augroup END
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
|
||||||
" The directory to install plugins.
|
" The directory to install plugins.
|
||||||
let g:PLUGIN_HOME=expand(stdpath('data') . '/plugged')
|
let g:PLUGIN_HOME=expand(stdpath('data') . '/plugged')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user