commit 6284221a023c04d152cb55a409e5c5fc3846ad07 parent 6d5ddc075b12f89b242637c43c1abb3cadac7c58 Author: Alex Balgavy <a.balgavy@gmail.com> Date: Thu, 23 Aug 2018 17:14:09 +0200 Install vim-plug if not installed Diffstat:
M | dotfiles/vim-config/plugins.vimrc | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/dotfiles/vim-config/plugins.vimrc b/dotfiles/vim-config/plugins.vimrc @@ -1,3 +1,8 @@ +if empty(glob('~/.vim/autoload/plug.vim')) + silent execute "!curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" + autocmd VimEnter * PlugInstall | source $MYVIMRC +endif + call plug#begin('~/.vim/plugged') " NERDTree - file browser Plug 'scrooloose/nerdtree'