I used to work with netbeans and it always put an asterisk and changed the tab color when the file had changed since last save. Is there any way to make vim do something similar, that is, remind me that I haven't saved the file?

I know that there is a way to have it save automatically once in a while, but I don't want to do that.