Autoinstall plug

This commit is contained in:
Thomas Forgione 2018-09-19 15:28:52 +02:00
parent 26f9ffa3b2
commit fc04e46c9f
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 7 additions and 0 deletions

View File

@ -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')