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
16
  vim -c "execute \"BundleInstall\" | q | q"
Max Gonzih's avatar
Max Gonzih committed
17
18
19
20
}

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

function vundle-clean () {
  vundle-init
  vim -c "execute \"BundleClean!\" | q | q"
}