From ab07e4069e72c9af0e9a7236a36aa49be787726b Mon Sep 17 00:00:00 2001 From: jdhao Date: Sun, 27 Sep 2020 18:46:12 +0800 Subject: use printf for string concatenation where needed --- plugins.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins.vim') 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 -- cgit v1.2.3