Skip to content

Commit f602ac6

Browse files
committed
Automate vim-plug installation
1 parent 93c59ff commit f602ac6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vimrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ scriptencoding utf-8
66

77
set nocompatible
88

9+
if empty(glob('~/.vim/autoload/plug.vim'))
10+
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
11+
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
12+
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
13+
endif
14+
915
" vim-plug
1016
call plug#begin('~/.vim/plugged')
1117

0 commit comments

Comments
 (0)