vimrc: add augroup install_vim_plug

This commit is contained in:
surtur 2022-10-06 16:00:30 +02:00
parent d148a982f9
commit 4eee674050
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

@ -8,11 +8,14 @@ scriptencoding=utf8
filetype off "required
augroup install_vim_plug
autocmd!
if empty(glob('~/.vim/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
augroup END
augroup plug_auto_install
autocmd!