转载自:http://www.udpwork.com/item/14087.html
第一步,执行下面这个脚本:
mkdir -p ~/.vim/{ftdetect,indent,syntax} && for d in ftdetect indent syntax ; do curl -o ~/.vim/$d/scala.vim https://raw.githubusercontent.com/gchen/scala.vim/master/scala.vim; done
第二步,在~/.vimrc中添加:
syntax on