mirror of
https://github.com/amix/vimrc
synced 2024-12-19 08:23:09 +00:00
18 lines
606 B
VimL
18 lines
606 B
VimL
" Language: CoffeeScript
|
|
" Maintainer: Mick Koch <mick@kochm.co>
|
|
" 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
|
|
autocmd BufNewFile,BufRead *._coffee set filetype=coffee
|
|
autocmd BufNewFile,BufRead *.cson set filetype=coffee
|
|
|
|
function! s:DetectCoffee()
|
|
if getline(1) =~ '^#!.*\<coffee\>'
|
|
set filetype=coffee
|
|
endif
|
|
endfunction
|
|
|
|
autocmd BufNewFile,BufRead * call s:DetectCoffee()
|