All through the Scala 2 releases, I’ve been happily using vim as my source code editor with Derek Wyatt’s
vim-scala plugin. With the release of Scala 3, of course I’m looking for some highlighting that’s compatible with the new syntax.
I was delighted, therefore, to discover the vim logo on the
scala-lang.org home page. But when I clicked it, it immediately sent me on a yak-shave of epic proportions:
- Install node and yarn to support coc.nvim…
- Install coc.nvim to install coc-metals…
- Make about 120 additions to your .vimrc file…
And all of this with the intent of turning vim into a Scala IDE.
But the reason I use vim is because it is not an IDE. It’s a simple text editor. It simplifies programming to its bare essentials: Source text, plus a compiler. It does not do any thinking for me, nor hide anything from me.
I can handle my own formatting, import-sorting, et cetera.
Is there any way to get Scala 3 syntax support in vi / vim without turning vim into an IDE?
Is there some way I can have the banana, without the gorilla who’s holding the banana, and the whole blessed jungle?
Many thanks for your help!