2013-09-12 09:50:45 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
2013-09-12 10:12:52 -04:00
|
|
|
set -E
|
2013-09-12 09:50:45 -04:00
|
|
|
|
|
|
|
DIRS="
|
Add support for basic languages
coffee, cucumbeer, eruby, haml, haskell, javascript,
json, less, nginx, ocaml, ruby, sass, scss, slim,
stylus, textile, tmux
2013-09-12 10:17:03 -04:00
|
|
|
syntax indent ftplugin ftdetect autoload compiler
|
2013-09-12 09:50:45 -04:00
|
|
|
after/syntax after/indent
|
|
|
|
"
|
|
|
|
|
|
|
|
copy_dir() {
|
2013-09-12 10:12:52 -04:00
|
|
|
if [ -d "$1/$2" ]; then
|
|
|
|
mkdir -p "$2"
|
|
|
|
cp -r $1/$2/* $2/
|
2013-09-12 09:50:45 -04:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
# Fetches syntax files from given Github repo
|
|
|
|
syntax() {
|
2013-09-12 10:12:52 -04:00
|
|
|
dir="tmp/$(echo "$1" | cut -d '/' -f 2)"
|
2013-09-12 09:50:45 -04:00
|
|
|
echo "$1..."
|
2013-09-12 10:12:52 -04:00
|
|
|
rm -rf "$dir"
|
|
|
|
git clone -q --recursive "https://github.com/$1.git" "$dir"
|
|
|
|
which tree > /dev/null && tree tmp
|
2013-09-12 09:50:45 -04:00
|
|
|
|
2013-09-12 10:12:52 -04:00
|
|
|
for subdir in $DIRS; do
|
|
|
|
copy_dir "$dir" "$subdir"
|
2013-09-12 09:50:45 -04:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2013-09-12 10:12:52 -04:00
|
|
|
rm -rf tmp
|
2013-09-12 09:50:45 -04:00
|
|
|
rm -rf $DIRS
|
2013-09-12 10:12:52 -04:00
|
|
|
mkdir -p tmp
|
2013-09-12 09:50:45 -04:00
|
|
|
|
2013-09-12 10:12:52 -04:00
|
|
|
syntax 'vim-ruby/vim-ruby' &
|
|
|
|
syntax 'kchmck/vim-coffee-script' &
|
|
|
|
syntax 'tpope/vim-haml' &
|
|
|
|
syntax 'tpope/vim-bundler' &
|
|
|
|
syntax 'pangloss/vim-javascript' &
|
|
|
|
syntax 'leshill/vim-json' &
|
|
|
|
syntax 'mutewinter/tomdoc.vim' &
|
|
|
|
syntax 'mutewinter/nginx.vim' &
|
|
|
|
syntax 'timcharper/textile.vim' &
|
|
|
|
syntax 'acustodioo/vim-tmux' &
|
|
|
|
syntax 'groenewege/vim-less' &
|
|
|
|
syntax 'wavded/vim-stylus' &
|
|
|
|
syntax 'tpope/vim-cucumber' &
|
Add support for basic languages
coffee, cucumbeer, eruby, haml, haskell, javascript,
json, less, nginx, ocaml, ruby, sass, scss, slim,
stylus, textile, tmux
2013-09-12 10:17:03 -04:00
|
|
|
syntax 'jrk/vim-ocaml' &
|
|
|
|
syntax 'wlangstroth/vim-haskell' &
|
|
|
|
syntax 'slim-template/vim-slim' &
|
2013-09-12 10:21:18 -04:00
|
|
|
syntax 'vim-scripts/XSLT-syntax' &
|
2013-09-12 10:23:36 -04:00
|
|
|
syntax 'vim-scripts/python.vim--Vasiliev' &
|
Add support for basic languages
coffee, cucumbeer, eruby, haml, haskell, javascript,
json, less, nginx, ocaml, ruby, sass, scss, slim,
stylus, textile, tmux
2013-09-12 10:17:03 -04:00
|
|
|
|
|
|
|
wait
|
|
|
|
|
|
|
|
rm -rf tmp
|