Parent directory

vundle.plugin.zsh

654 bytes
 1function vundle-init () {
 2  if [ ! -d ~/.vim/bundle/Vundle.vim/ ]
 3  then
 4    mkdir -p ~/.vim/bundle/Vundle.vim/
 5  fi
 6
 7  if [ ! -d ~/.vim/bundle/Vundle.vim/.git ] && [ ! -f ~/.vim/bundle/Vundle.vim/.git ]
 8  then
 9    git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
10    echo "\n\tRead about vim configuration for vundle at https://github.com/VundleVim/Vundle.vim\n"
11  fi
12}
13
14function vundle () {
15  vundle-init
16  vim -c "execute \"PluginInstall\" | qa"
17}
18
19function vundle-update () {
20  vundle-init
21  vim -c "execute \"PluginInstall!\" | qa"
22}
23
24function vundle-clean () {
25  vundle-init
26  vim -c "execute \"PluginClean!\" | qa"
27}