add automatic vim plugin manager installation

This commit is contained in:
Marty Oehme 2019-03-20 14:06:46 +01:00
parent ae8ac10b0b
commit 992d19da56

View file

@ -1,3 +1,11 @@
" automatically install vim-plug if it does not exist
" Note: this installs it in the neovim folder, not the vim folder
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
" defines plugin directory " defines plugin directory
" Install plugins from vim with :PlugInstall " Install plugins from vim with :PlugInstall
call plug#begin('~/.local/share/nvim/plugged') call plug#begin('~/.local/share/nvim/plugged')