How to configure VIM to be able to highlight scala language (.scala files extension)?
Current VIM configuration (.vimrc file): :syntax on
1 Answer
Download the
scala.vimfile from here to e.g.~/.vim/syntaxdirectory.Edit your
~/.vimrcfile 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