blob: 358b8ce5178b8525af5537766f6877ddb35f92d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#! /bin/bash
DIR=$(readlink -f $(dirname $0))
pushd $HOME >/dev/null
rm .vim*
ln -sf $DIR .vim
ln -sf $DIR/vimrc .vimrc
popd $HOME >/dev/null
[ ! -d $DIR/autoload ] && mkdir $DIR/autoload
echo "update pathogen" && curl -# -o $DIR/autoload/pathogen.vim https://raw.github.com/tpope/vim-pathogen/HEAD/autoload/pathogen.vim
PROTO=git
# github.com/Townk/vim-autoclose.git
GIT_URLS="
github.com/scrooloose/nerdtree.git
github.com/msanders/snipmate.vim.git
github.com/vim-scripts/taglist.vim.git
github.com/tpope/vim-commentary.git
github.com/jwhitley/vim-matchit.git
github.com/tpope/vim-repeat.git
github.com/tpope/vim-surround.git
github.com/tpope/vim-git.git
github.com/tpope/vim-fugitive.git
github.com/tpope/vim-haml.git
github.com/tpope/vim-markdown.git
github.com/majutsushi/tagbar
github.com/altercation/vim-colors-solarized.git
github.com/embear/vim-localvimrc.git
"
[ ! -d $DIR/bundle ] && mkdir $DIR/bundle
cd $DIR/bundle
for url in $GIT_URLS; do
gitdir=${url##*/}
dir=${gitdir%.git}
if [ -d "$dir/.git" ]; then
cd $dir && echo "update $dir" && git pull; cd ..
else
git clone "$PROTO://$url"
fi
done
|