9 lines
210 B
VimL
9 lines
210 B
VimL
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()
|