add vim-plug autoinstall

This commit is contained in:
2021-11-14 07:11:56 +00:00
parent c666023f8c
commit 44793d192f
2 changed files with 14 additions and 0 deletions

View File

@@ -1,5 +1,12 @@
set nocompatible
" Automatically install vim plug & plugins
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 $MYVIMRC
endif
call plug#begin()
Plug 'vim-test/vim-test'
Plug 'tpope/vim-commentary'