Automatically Download vim-plug

This commit is contained in:
Marco Thomas
2021-08-23 10:37:02 +02:00
parent 9ebcc4647a
commit 67666b5ff5

View File

@@ -10,6 +10,12 @@
let mapleader = "\<Space>"
" ============================== vim-plug
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob(data_dir . '/autoload/plug.vim'))
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
autocmd VimEnter * PlugInstall --sync | source ~/.vimrc
endif
call plug#begin()
Plug 'morhetz/gruvbox' " color scheme