2013-09-12 17:01:36 +02:00
|
|
|
#!/usr/bin/env zsh
|
2013-09-12 15:50:45 +02:00
|
|
|
|
2013-09-12 16:12:52 +02:00
|
|
|
set -E
|
2013-09-12 17:01:36 +02:00
|
|
|
setopt extended_glob
|
2013-09-12 15:50:45 +02:00
|
|
|
|
2013-09-12 17:01:36 +02: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 16:17:03 +02:00
|
|
|
syntax indent ftplugin ftdetect autoload compiler
|
2013-09-12 16:30:10 +02:00
|
|
|
after/syntax after/indent after/ftplugin after/ftdetect
|
2013-09-12 17:01:36 +02:00
|
|
|
)
|
2013-09-12 15:50:45 +02:00
|
|
|
|
|
|
|
copy_dir() {
|
2013-09-12 16:12:52 +02:00
|
|
|
if [ -d "$1/$2" ]; then
|
2013-09-12 17:01:36 +02:00
|
|
|
for file in $(find "$1/$2" -name '*.vim'); do
|
|
|
|
file_path="$(dirname "${file##$1/}")"
|
|
|
|
mkdir -p "$file_path"
|
|
|
|
cp $file $file_path/
|
|
|
|
done
|
2013-09-12 15:50:45 +02:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
# Fetches syntax files from given Github repo
|
|
|
|
syntax() {
|
2013-09-12 16:12:52 +02:00
|
|
|
dir="tmp/$(echo "$1" | cut -d '/' -f 2)"
|
2013-09-12 15:50:45 +02:00
|
|
|
echo "$1..."
|
2013-09-12 16:12:52 +02:00
|
|
|
rm -rf "$dir"
|
|
|
|
git clone -q --recursive "https://github.com/$1.git" "$dir"
|
|
|
|
which tree > /dev/null && tree tmp
|
2013-09-12 15:50:45 +02:00
|
|
|
|
2013-09-12 16:12:52 +02:00
|
|
|
for subdir in $DIRS; do
|
|
|
|
copy_dir "$dir" "$subdir"
|
2013-09-12 15:50:45 +02:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2013-09-12 16:12:52 +02:00
|
|
|
rm -rf tmp
|
2013-09-12 15:50:45 +02:00
|
|
|
rm -rf $DIRS
|
2013-09-12 16:12:52 +02:00
|
|
|
mkdir -p tmp
|
2013-09-12 15:50:45 +02:00
|
|
|
|
2013-09-12 16:12:52 +02: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' &
|
2013-09-12 17:24:09 +02:00
|
|
|
syntax 'tpope/vim-markdown' &
|
2013-09-12 17:34:37 +02:00
|
|
|
syntax 'nono/vim-handlebars' &
|
2013-09-12 16:12:52 +02:00
|
|
|
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 16:17:03 +02:00
|
|
|
syntax 'jrk/vim-ocaml' &
|
|
|
|
syntax 'slim-template/vim-slim' &
|
2013-09-12 16:21:18 +02:00
|
|
|
syntax 'vim-scripts/XSLT-syntax' &
|
2013-09-12 16:23:36 +02:00
|
|
|
syntax 'vim-scripts/python.vim--Vasiliev' &
|
2013-09-12 16:25:13 +02:00
|
|
|
syntax 'vim-scripts/octave.vim--' &
|
2013-09-12 17:22:37 +02:00
|
|
|
syntax 'jnwhiteh/vim-golang' &
|
2013-09-12 16:33:12 +02:00
|
|
|
syntax 'spf13/PIV' &
|
2013-09-12 16:34:47 +02:00
|
|
|
syntax 'briancollins/vim-jst' &
|
2013-09-12 17:02:41 +02:00
|
|
|
syntax 'derekwyatt/vim-scala' &
|
|
|
|
syntax 'derekwyatt/vim-sbt' &
|
2013-09-12 17:17:14 +02:00
|
|
|
syntax 'travitch/hasksyn' &
|
2013-09-12 17:36:44 +02:00
|
|
|
syntax 'ajf/puppet-vim' &
|
2013-09-12 17:26:31 +02:00
|
|
|
syntax 'beyondwords/vim-twig' &
|
2013-09-12 17:28:29 +02:00
|
|
|
syntax 'sudar/vim-arduino-syntax' &
|
2013-09-12 17:29:50 +02:00
|
|
|
syntax 'guns/vim-clojure-static' &
|
2013-09-12 17:30:48 +02:00
|
|
|
syntax 'chrisbra/csv.vim' &
|
2013-09-12 17:31:56 +02:00
|
|
|
syntax 'elixir-lang/vim-elixir' &
|
2013-09-12 17:32:53 +02:00
|
|
|
syntax 'jimenezrick/vimerl' &
|
2013-09-12 17:33:47 +02:00
|
|
|
syntax 'tpope/vim-git' &
|
2013-09-12 17:37:44 +02:00
|
|
|
syntax 'skwp/vim-rspec' &
|
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 16:17:03 +02:00
|
|
|
|
|
|
|
wait
|
|
|
|
|
|
|
|
rm -rf tmp
|