2012-08-17 03:41:25 +00:00
|
|
|
" Language: CoffeeScript
|
2014-10-14 13:30:33 +00:00
|
|
|
" Maintainer: Mick Koch <mick@kochm.co>
|
2012-08-17 03:41:25 +00:00
|
|
|
" URL: http://github.com/kchmck/vim-coffee-script
|
|
|
|
" License: WTFPL
|
|
|
|
|
|
|
|
autocmd BufNewFile,BufRead *.coffee set filetype=coffee
|
|
|
|
autocmd BufNewFile,BufRead *Cakefile set filetype=coffee
|
|
|
|
autocmd BufNewFile,BufRead *.coffeekup,*.ck set filetype=coffee
|
2013-04-13 17:45:21 +00:00
|
|
|
autocmd BufNewFile,BufRead *._coffee set filetype=coffee
|
2012-08-17 03:41:25 +00:00
|
|
|
|
|
|
|
function! s:DetectCoffee()
|
|
|
|
if getline(1) =~ '^#!.*\<coffee\>'
|
|
|
|
set filetype=coffee
|
|
|
|
endif
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
autocmd BufNewFile,BufRead * call s:DetectCoffee()
|