Seems she has a need. Vomiting is not nice and it is pretty hard to believe some-one would do it just for attention. Do you think you could meet her need for a while? Lie down with her/cuddle her? Put her in bed with you. No it's not *giving in*. It's not *making a bad habit* - she is upset and you are responding, which is normal for a parent to do.