Skip to content
My work on integration of Scala into Vim - not a ton here, but useful for me.
VimL Scala Ruby
Find file
Latest commit e590ca1 Feb 19, 2016 Derek Wyatt Fix for issue #120
- You can now have proper highlighting for things like
    val a, b, c, d: Type = value
- Doesn't yet work for (and I don't know if it's valid Scala)
    val a, b: Type, c, d: Type = value


This is a "bundle" for Vim that builds off of the initial Scala plugin modules by Stefan Matthias Aust and adds some more "stuff" that I find useful, including all of my notes and customizations.


You really should be using Tim Pope's Pathogen module for Vim ( if you're going to clone this repository because, well... you should.

Using the command-line

Using wget:

mkdir -p ~/.vim/{ftdetect,indent,syntax} && for d in ftdetect indent syntax ; do wget -O ~/.vim/$d/scala.vim$d/scala.vim; done

Using cURL:

mkdir -p ~/.vim/{ftdetect,indent,syntax} && for d in ftdetect indent syntax ; do curl -o ~/.vim/$d/scala.vim$d/scala.vim; done


Alternatively, you can use Vundle to manage your plugins.

If you have Vundle installed, simply add the following to your .vimrc:

Plugin 'derekwyatt/vim-scala'

and then run


to install it.

Sorting of import statements


There are different modes for import sorting available. For details, please consult the vimdoc help with

:help :SortScalaImports
Something went wrong with that request. Please try again.