aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-09-27 19:09:14 +0800
committerjdhao <jdhao@hotmail.com>2020-09-27 19:09:14 +0800
commiteb7df6b06c31164620c3e49f39d7aa0399f2e7b0 (patch)
treed68e26b7b686c4904445d0819234582902075304
parent448d864eba50c7adba1cfb84df2a38de1e8bf512 (diff)
refactor: variable naming
-rw-r--r--plugins.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins.vim b/plugins.vim
index ea74c70..a7d1ea3 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(stdpath('data') . '/autoload/plug.vim')
+let g:vim_plug_fpath = expand(stdpath('data') . '/autoload/plug.vim')
if g:is_win || g:is_mac
- if empty(glob(g:VIM_PLUG_PATH))
+ if empty(glob(g:vim_plug_fpath))
if executable('curl')
echomsg 'Installing Vim-plug on your system'
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)
+ silent execute printf('!curl -fLo %s --create-dirs %s', g:vim_plug_fpath, s:vim_plug_furl)
augroup plug_init
autocmd!
autocmd VimEnter * PlugInstall --sync | quit |source $MYVIMRC