To be able to edit Scala source files in Vim comfortably, download the following file, and un-tar it in your $HOME/.vim directory.


This archive when expanded contains:

  • ftdetect/scala.vim
  • indent/scala.vim
  • syntax/scala.vim

These files were taken from the latest (as of July 22nd 2008) version available from scala-tools repository

The idea originally comes from this blog post