add autoinstall of vundle plugins

This commit is contained in:
Jidbo 2018-12-07 12:22:29 +01:00
parent 7ba87a776f
commit d2a57cd443

View file

@ -12,9 +12,19 @@ ln -s ~/.dotfiles/.zshrc ~/.zshrc
ln -s ~/.dotfiles/.vim ~/.vim ln -s ~/.dotfiles/.vim ~/.vim
ln -s ~/.dotfiles/tmux.conf ~/.tmux.conf ln -s ~/.dotfiles/tmux.conf ~/.tmux.conf
# install vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
# next steps: # install vundle
# - chage oh-my-zsh home directory if ! [ -d ~/.vim/bundle/Vundle.vim ]; then
# - install Vundle plugins from inside vim :PluginInstall echo '[INFO] Installing Vundle...'
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
else
echo '[INFO] Vundle is already installed.'
fi
# Install vundle Plugins
if commandExists vim; then
echo '[INFO] Installing vim plugins via Vundle...'
vim +PluginInstall +qall
else
echo '[INFO] Vim is not installed, could not install the plugins.'
fi