]> git.rmz.io Git - dotfiles.git/blobdiff - zsh/plugins/vundle/vundle.plugin.zsh
merge oh-my-zsh into subdir
[dotfiles.git] / zsh / plugins / vundle / vundle.plugin.zsh
diff --git a/zsh/plugins/vundle/vundle.plugin.zsh b/zsh/plugins/vundle/vundle.plugin.zsh
new file mode 100644 (file)
index 0000000..005a584
--- /dev/null
@@ -0,0 +1,23 @@
+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
+    echo "\n\tRead about vim configuration for vundle at https://github.com/gmarik/vundle\n"
+  fi
+}
+
+function vundle () {
+  vundle-init
+  vim -c "execute \"BundleInstall\" | q | q"
+}
+
+
+function vundle-update () {
+  vundle-init
+  vim -c "execute \"BundleInstall!\" | q | q"
+}