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

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

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

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

function vundle-clean () {
  vundle-init
dnixx's avatar
dnixx committed
26
  vim -c "execute \"PluginClean!\" | q | q"
27
}