[NVIM] Fix vim-plug install

This commit is contained in:
Fabian Ising
2024-07-19 14:08:16 +02:00
parent e2e61cd55c
commit 65cc09edea

View File

@@ -7,6 +7,7 @@ filetype off
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'
let &runtimepath = &runtimepath
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif