diff options
| author | jdhao <jdhao@hotmail.com> | 2020-09-27 18:46:12 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2020-09-27 18:46:12 +0800 |
| commit | ab07e4069e72c9af0e9a7236a36aa49be787726b (patch) | |
| tree | 9f7f0689f4b775c70532c1a6382e190800c18dda /plugins.vim | |
| parent | 233d6a2ba679409a41bee5795381ee3dcd6fd289 (diff) | |
use printf for string concatenation where needed
Diffstat (limited to 'plugins.vim')
| -rw-r--r-- | plugins.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins.vim b/plugins.vim index ada53ea..4fe0376 100644 --- a/plugins.vim +++ b/plugins.vim @@ -13,8 +13,8 @@ if g:is_win || g:is_mac if empty(glob(g:VIM_PLUG_PATH)) if executable('curl') echomsg 'Installing Vim-plug on your system' - silent execute '!curl -fLo ' . g:VIM_PLUG_PATH . ' --create-dirs ' - \ . 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' + 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) augroup plug_init autocmd! autocmd VimEnter * PlugInstall --sync | quit |source $MYVIMRC |
