4

How to configure VIM to be able to highlight scala language (.scala files extension)?

Current VIM configuration (.vimrc file): :syntax on

Denis Kuzin
  • 181
  • 1
  • 8

1 Answers1

4
  1. Download the scala.vim file from here http://github.com/vim-scripts/scala.vim to e.g. ~/.vim/syntax directory.

  2. Edit your ~/.vimrc file and add the following:

    au BufRead,BufNewFile *.scala set filetype=scala
    au! Syntax scala source ~/.vim/syntax/scala.vim
    

source: Scala syntax highlighting in VIM

αғsнιη
  • 36,350
Denis Kuzin
  • 181
  • 1
  • 8