add automatic vim plugin manager installation
This commit is contained in:
parent
ae8ac10b0b
commit
992d19da56
1 changed files with 8 additions and 0 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue