Commit 499819ce authored by Max Gonzih's avatar Max Gonzih
Browse files

vundle plugin refactored

first it checks existens of vundle plugin, if plugin dont exist run git clone
parent 7ef7ffc5
alias vundle-init='git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle' function vundle-init () {
alias vundle='vim -c "execute \"BundleInstall\" | q"' if [ ! -d ~/.vim/bundle/vundle/ ]
alias vundle-update='vim -c "execute \"BundleInstall!\" | q"' 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
fi
}
function vundle () {
vundle-init
vim -c "execute \"BundleInstall\" | q"
}
function vundle-update () {
vundle-init
vim -c "execute \"BundleInstall!\" | q"
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment