diff options
| author | jdhao <jdhao@hotmail.com> | 2020-09-27 19:06:22 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2020-09-27 19:06:22 +0800 |
| commit | 448d864eba50c7adba1cfb84df2a38de1e8bf512 (patch) | |
| tree | 8ddd4a6520f65ba45d96257f550854a6cb0cc788 | |
| parent | ab07e4069e72c9af0e9a7236a36aa49be787726b (diff) | |
change location of vim-plug
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | plugins.vim | 6 |
2 files changed, 3 insertions, 4 deletions
@@ -1,5 +1,4 @@ tags -autoload/plug.vim en.utf-8.add.spl *.exe .netrwhist diff --git a/plugins.vim b/plugins.vim index 4fe0376..ea74c70 100644 --- a/plugins.vim +++ b/plugins.vim @@ -8,13 +8,13 @@ scriptencoding utf-8 " https://devblogs.microsoft.com/commandline/tar-and-curl-come-to-windows/). " 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_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 empty(glob(g:VIM_PLUG_PATH)) if executable('curl') echomsg 'Installing Vim-plug on your system' - let l: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) + let s:vim_plug_furl = 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' + silent execute printf('!curl -fLo %s --create-dirs %s', g:VIM_PLUG_PATH, s:vim_plug_furl) augroup plug_init autocmd! autocmd VimEnter * PlugInstall --sync | quit |source $MYVIMRC |
