Autoinstall plug
This commit is contained in:
parent
26f9ffa3b2
commit
fc04e46c9f
7
init.vim
7
init.vim
|
@ -1,6 +1,13 @@
|
||||||
" Pas de compatibilité a VI !
|
" Pas de compatibilité a VI !
|
||||||
set nocompatible
|
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 ###########################################################{{{
|
" PLUGNIS ###########################################################{{{
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
if has('nvim')
|
if has('nvim')
|
||||||
|
|
Loading…
Reference in New Issue