Nicky, please ask your doctor to check you for walking pneumonia. I just looked up the symptoms because of my own chronic cough and vomiting was on the list. This does not mean this is what you have, though. It also mentioned that vomiting occurred between coughing, not only during coughing spells. You can Google walking pneumonia for the full list just to check it out.
A concerned cougher,
Laura