vim-polyglot/ftdetect/scala.vim

9 lines
210 B
VimL
Raw Normal View History

2013-09-12 11:02:41 -04:00
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()