I didn't mean to scare you in my previous post (if I did, sorry!), but please only give the vitamins if prescribed/discussed w/your vet.
I googled & got this:
Why Do Dogs Eat Dirt? - VetInfo
Since he's vomiting, I think he needs to be seen by a vet. Hope he'll feel better soon & please keep us posted.