News for hackers. Stuff that matters.
Re:How to compile CoffeeScript on save in VIM by arnklint on Tuesday May 17, 2011 @04:45AM (#2555756)
Yes, it should be as easy as autocmd BufWritePost,FileWritePost *.coffee :silent !sass --update <afile>
Re:How to compile CoffeeScript on save in VIM by TrevorBurnham on Tuesday May 17, 2011 @09:29AM (#2556272)
The CoffeeScript compiler is very fast (takes <100ms for a typical file), so this is a fairly good approach for most development.

However, it's worth noting that there are other projects that let you stop thinking about compilation altogether. If you're developing for Rails or Python, for instance, you can just use a plugin. (And as of Rails 3.1, you don't even need one.) If you're just developing a static site, I like The Middleman (http://middlemanapp.com/), which does on-demand Haml, Sass/Less, and CoffeeScript compilation, then lets you bundle it all up (minified) for deployment with a single command.

Re:How to compile CoffeeScript on save in VIM by arnklint on Tuesday May 17, 2011 @09:50AM (#2556329)
I´m compiling on save and combining that with http://documentcloud.github.com/jammit/ quite successfully.
Re:How to compile CoffeeScript on save in VIM by hagy on Tuesday May 17, 2011 @05:20AM (#2555823)
coffee-mode.el provides the same functionality for emacs. Automatic compilation of any *.coffee file on save can be enabled by

    (add-hook 'after-save-hook
                          (lambda ()
                            (when (string-match "\.coffee$" (buffer-name))
                              (coffee-compile-file))))
Re:How to compile CoffeeScript on save in VIM by briggers on Tuesday May 17, 2011 @05:46AM (#2555879)
coffee -w
Re:How to compile CoffeeScript on save in VIM by beck5 on Tuesday May 17, 2011 @04:15AM (#2555706)
I guess a SASS version could also work?
Re:How to compile CoffeeScript on save in VIM by Emouri on Tuesday May 17, 2011 @04:45AM (#2555754)
Check out the comments for something that might work (haven't tried it myself)