mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
change location of vim-plug
This commit is contained in:
parent
ab07e4069e
commit
448d864eba
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,4 @@
|
|||||||
tags
|
tags
|
||||||
autoload/plug.vim
|
|
||||||
en.utf-8.add.spl
|
en.utf-8.add.spl
|
||||||
*.exe
|
*.exe
|
||||||
.netrwhist
|
.netrwhist
|
||||||
|
|||||||
@ -8,13 +8,13 @@ scriptencoding utf-8
|
|||||||
" https://devblogs.microsoft.com/commandline/tar-and-curl-come-to-windows/).
|
" https://devblogs.microsoft.com/commandline/tar-and-curl-come-to-windows/).
|
||||||
" 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_PATH = expand(g:nvim_config_root . '/autoload/plug.vim')
|
let g:VIM_PLUG_PATH = expand(stdpath('data') . '/autoload/plug.vim')
|
||||||
if g:is_win || g:is_mac
|
if g:is_win || g:is_mac
|
||||||
if empty(glob(g:VIM_PLUG_PATH))
|
if empty(glob(g:VIM_PLUG_PATH))
|
||||||
if executable('curl')
|
if executable('curl')
|
||||||
echomsg 'Installing Vim-plug on your system'
|
echomsg 'Installing Vim-plug on your system'
|
||||||
let l:vim_plug_furl = 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
let s:vim_plug_furl = 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
||||||
silent execute printf('!curl -fLo %s --create-dirs %s', l:vim_plug_furl, g:VIM_PLUG_PATH)
|
silent execute printf('!curl -fLo %s --create-dirs %s', g:VIM_PLUG_PATH, s:vim_plug_furl)
|
||||||
augroup plug_init
|
augroup plug_init
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd VimEnter * PlugInstall --sync | quit |source $MYVIMRC
|
autocmd VimEnter * PlugInstall --sync | quit |source $MYVIMRC
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user