vim plugins autoinstall on first load

This commit is contained in:
Andrei Stoica 2019-01-21 18:04:27 +00:00
parent caefeb50e3
commit 89950b31ad
1 changed files with 16 additions and 11 deletions

5
.vimrc
View File

@ -1,6 +1,11 @@
set nocompatible " be iMproved, required set nocompatible " be iMproved, required
filetype off " required filetype off " required
if empty(glob("~/.vim/bundle/Vundle.vim"))
execute '!git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim'
autocmd VimEnter * silent! PluginInstall
endif
" set the runtime path to include Vundle and initialize " set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin() call vundle#begin()