Add scala and sbt support

This commit is contained in:
Adam Stankiewicz
2013-09-12 17:02:41 +02:00
parent 49b050f042
commit 0a4fcd12b6
9 changed files with 1035 additions and 0 deletions

8
ftdetect/scala.vim Normal file
View File

@@ -0,0 +1,8 @@
fun! s:DetectScala()
if getline(1) == '#!/usr/bin/env scala'
set filetype=scala
endif
endfun
au BufRead,BufNewFile *.scala,*.sbt set filetype=scala
au BufRead,BufNewFile * call s:DetectScala()