You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
555 B
VimL
18 lines
555 B
VimL
11 years ago
|
" Language: CoffeeScript
|
||
|
" Maintainer: Mick Koch <kchmck@gmail.com>
|
||
|
" 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
|
||
|
|
||
|
function! s:DetectCoffee()
|
||
|
if getline(1) =~ '^#!.*\<coffee\>'
|
||
|
set filetype=coffee
|
||
|
endif
|
||
|
endfunction
|
||
|
|
||
|
autocmd BufNewFile,BufRead * call s:DetectCoffee()
|