summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAudric Schiltknecht <storm@chemicalstorm.org>2012-10-10 22:33:57 +0200
committerAudric Schiltknecht <storm@chemicalstorm.org>2012-10-10 22:33:57 +0200
commitc54cbff69091a3dfc030c44166dbefb0bace585f (patch)
tree532b90f628ef950643d92c6fbacd2a874f001ca1
parentc92d01907c7301eb9b4e4af65ddab0022c5a75f1 (diff)
downloaddotfiles-c54cbff69091a3dfc030c44166dbefb0bace585f.tar.gz
dotfiles-c54cbff69091a3dfc030c44166dbefb0bace585f.tar.bz2
dotfiles-c54cbff69091a3dfc030c44166dbefb0bace585f.zip
Add fugitive bundle
-rw-r--r--.gitmodules3
m---------vim/.vim/bundle/fugitive0
-rwxr-xr-xvim/add-plugin.sh14
-rwxr-xr-xvim/update-plugins.sh6
4 files changed, 23 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..7ebb7a7
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "vim/.vim/bundle/fugitive"]
+ path = vim/.vim/bundle/fugitive
+ url = https://github.com/tpope/vim-fugitive.git
diff --git a/vim/.vim/bundle/fugitive b/vim/.vim/bundle/fugitive
new file mode 160000
+Subproject f43393dd9a3bfe01c19af4d3c67e4c4782f09f3
diff --git a/vim/add-plugin.sh b/vim/add-plugin.sh
new file mode 100755
index 0000000..58d26b3
--- /dev/null
+++ b/vim/add-plugin.sh
@@ -0,0 +1,14 @@
+#!/bin/bash -x
+
+# adds a new vim plugin from a git repository
+
+if [ $# -ne 2 ]
+then
+echo "Usage: `basename $0` <plugin-url> <plugin-name>"
+ exit 65
+fi
+
+cd $(dirname $0)/..
+git submodule add $1 $(dirname $0)/vim/.vim/bundle/$2
+git submodule init
+git submodule update
diff --git a/vim/update-plugins.sh b/vim/update-plugins.sh
new file mode 100755
index 0000000..f4d2767
--- /dev/null
+++ b/vim/update-plugins.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+# updates all known submodules
+
+cd `dirname $0`/..
+git submodule foreach git pull