From c54cbff69091a3dfc030c44166dbefb0bace585f Mon Sep 17 00:00:00 2001 From: Audric Schiltknecht Date: Wed, 10 Oct 2012 22:33:57 +0200 Subject: Add fugitive bundle --- .gitmodules | 3 +++ vim/.vim/bundle/fugitive | 1 + vim/add-plugin.sh | 14 ++++++++++++++ vim/update-plugins.sh | 6 ++++++ 4 files changed, 24 insertions(+) create mode 100644 .gitmodules create mode 160000 vim/.vim/bundle/fugitive create mode 100755 vim/add-plugin.sh create mode 100755 vim/update-plugins.sh 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 index 0000000..f43393d --- /dev/null +++ b/vim/.vim/bundle/fugitive @@ -0,0 +1 @@ +Subproject commit f43393dd9a3bfe01c19af4d3c67e4c4782f09f34 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` " + 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 -- cgit v1.2.3-70-g09d2