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

  if [ ! -d ~/.vim/bundle/vundle/.git/ ]
  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
21
}


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