第一步:執行下面這個命令:git
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.vimdone
第二步:在~/.vimrc中添加:github
syntax on