vim-polyglot/ftdetect/scala.vim
2013-09-12 17:02:41 +02:00

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()