Hi welcome to YT i'm new too!
i would advise you to call the vet and tell them about the vomiting see what they say, its best to be safe, they should give u some advice on him not eating also! becareful with a pup that age coz of hypoglycemia! as for food, when i first got my yorkie it took a while to find a food he liked and also i just changed him to adult food and it took a while as he had an allergic reaction to the food i changed him to so had to get one which is for sensitive tummys which he loves and is really healthy on! alot of yorkies have sensitive tummys! the food is from england so don't think you can get it over there but the flavor is ocean white fish and rice its the only flavor his tummy can handle.just some ideas for you. hope it helped! but i would definatly call the vet to see what they say! hope your little one feels better soon