Tooth decay? How often would someone have to vomit before it would damage their teeth?

About 7 years ago I went through a short spell of making myself sick after eating. It was only for a couple of months, and I would only do it once a week, maximum twice, but that would be unusual.

Although I hadn't seen a dentist for 10 years I thought I took reasonably good care of my teeth, and was shocked to find out recently that I now need nine fillings and all my wisdom teeth extracted due to decay. I was just wondering if my very short spell of vomiting could have caused all the cavities I have now? Or is it more likely that I just haven't taken good enough care of my teeth and eaten too much sugar over the past 10 years?

Summarized question: Does vomiting cause teeth cavities?