Any easy way to bind make to the buffer save hook?
fullofcaffeine opened this issue · 1 comments
fullofcaffeine commented
Is it possible?
- Marcelo.
jdonaldson commented
Sure. You have a couple of different options. First, you can use syntastic:
https://github.com/scrooloose/syntastic
Syntastic will run the compiler after every write, and highlight any errors it finds. The haxe compiler is usually so fast that there's little to no lag. The output from the compile will be generated normally, as if you had run it manually.
The other option is to set up an automatic buffer write command in your vimrc. I think something like this should work:
autocmd BufWritePost,FileWritePost *.hx :silent make