From fc04e46c9fb0342c11d806ebb0b2ccedb074ca2a Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Wed, 19 Sep 2018 15:28:52 +0200 Subject: [PATCH] Autoinstall plug --- init.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init.vim b/init.vim index dff11d3..ad08382 100644 --- a/init.vim +++ b/init.vim @@ -1,6 +1,13 @@ " Pas de compatibilité a VI ! set nocompatible +" If plug is not installed, install it +if empty(glob('~/.config/nvim/autoload/plug.vim')) + silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs + \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim + autocmd VimEnter * PlugInstall --sync | source $MYVIMRC +endif + " PLUGNIS ###########################################################{{{ call plug#begin() if has('nvim')