Vim save then make automatically?

Viewed 5793

I want to call a command when I save the file. I am calling it by :make manually now, but I wish it could be called when I execute :w and :wq.

I also want enable this feature in any subfolder that doesn't contain a Makefile but its parents contains one. Just like this topic said, but it doesn't works for me:

How to efficiently "make" with Vim

3 Answers
Related