vundle.plugin.zsh 654 Bytes
Newer Older
Max Gonzih's avatar
Max Gonzih committed
1
function vundle-init () {
章正中's avatar
章正中 committed
2
  if [ ! -d ~/.vim/bundle/Vundle.vim/ ]
Max Gonzih's avatar
Max Gonzih committed
3
  then
章正中's avatar
章正中 committed
4
    mkdir -p ~/.vim/bundle/Vundle.vim/
Max Gonzih's avatar
Max Gonzih committed
5
6
  fi

章正中's avatar
章正中 committed
7
  if [ ! -d ~/.vim/bundle/Vundle.vim/.git ] && [ ! -f ~/.vim/bundle/Vundle.vim/.git ]
Max Gonzih's avatar
Max Gonzih committed
8
  then
9
    git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
章正中's avatar
章正中 committed
10
    echo "\n\tRead about vim configuration for vundle at https://github.com/VundleVim/Vundle.vim\n"
Max Gonzih's avatar
Max Gonzih committed
11
12
13
14
15
  fi
}

function vundle () {
  vundle-init
16
  vim -c "execute \"PluginInstall\" | qa"
Max Gonzih's avatar
Max Gonzih committed
17
18
19
20
}

function vundle-update () {
  vundle-init
21
  vim -c "execute \"PluginInstall!\" | qa"
Max Gonzih's avatar
Max Gonzih committed
22
}
23
24
25

function vundle-clean () {
  vundle-init
26
  vim -c "execute \"PluginClean!\" | qa"
27
}