From 50396d581bb1a9aee41001da3f754f1696dd43af Mon Sep 17 00:00:00 2001 From: CADBOT Date: Fri, 9 May 2014 05:43:47 +0000 Subject: [PATCH] Add a vundle plugin similiar to that found in oh-my-zsh --- plugins/vundle/vundle.load | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 plugins/vundle/vundle.load diff --git a/plugins/vundle/vundle.load b/plugins/vundle/vundle.load new file mode 100644 index 0000000..d81cf78 --- /dev/null +++ b/plugins/vundle/vundle.load @@ -0,0 +1,25 @@ +function vundle-init + if [ ! -d ~/.vim/bundle/vundle/ ] + mkdir -p ~/.vim/bundle/vundle/ + end + + if [ ! -d ~/.vim/bundle/vundle/.git/ ] + git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle + echo "\n\tRead about vim configuration for vundle at https://github.com/gmarik/vundle\n" + end +end + +function vundle + vundle-init + vim -c "execute \"BundleInstall\" | q | q" +end + +function vundle-update + vundle-init + vim -c "execute \"BundleInstall!\" | q | q" +end + +function vundle-clean + vundle-init + vim -c "execute \"BundleClean!\" | q | q" +end