I would not be worried by the vomiting- rather by his behavior which is more quiet than usual. And I would be definitely worried by him not eating.
Cats can be under the weather a day- but after 2 days I would take him to the vet.