19 lines
488 B
VimL
19 lines
488 B
VimL
" Language: CoffeeScript
|
|
" Maintainer: Mick Koch <kchmck@gmail.com>
|
|
" URL: http://github.com/kchmck/vim-coffee-script
|
|
" License: WTFPL
|
|
|
|
if exists("b:did_ftplugin")
|
|
finish
|
|
endif
|
|
|
|
let b:did_ftplugin = 1
|
|
|
|
setlocal formatoptions-=t formatoptions+=croql
|
|
setlocal comments=s:###,m:\ ,e:###,:#
|
|
setlocal commentstring=#\ %s
|
|
|
|
" Compile the current file on write.
|
|
if exists("coffee_compile_on_save")
|
|
autocmd BufWritePost,FileWritePost *.coffee silent !coffee -c <afile> &
|
|
endif
|