Skip to content

Instantly share code, notes, and snippets.

@ryo-murai
Last active January 1, 2016 12:09
Show Gist options
  • Save ryo-murai/8142732 to your computer and use it in GitHub Desktop.
Save ryo-murai/8142732 to your computer and use it in GitHub Desktop.
scala syntax highlighting for msysgit vim.
#!/bin/bash
vimdir=/usr/share/vim/vim74
mkdir -p $vimdir/{ftdetect,indent,syntax}
for d in ftdetect indent syntax
do
curl -o $vimdir/$d/scala.vim https://raw.githubusercontent.com/scala/scala-tool-support/master/tool-support/vim/$d/scala.vim
done
for f in html javascript css vb
do
if [ -z $vimdir/syntax/$f.vim ]; then
echo "downloading $f.vim from sf.net ... "
curl -o $vimdir/syntax/$f.vim http://sourceforge.net/p/vim/code/HEAD/tree/vim7/runtime/syntax/$f.vim?format=raw
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment