It's actually two words. You're saying "damn it" with "it" being what you're upset with. Dictionary.com says the correct spelling of the colloquialism is "dammit." I don't know why. But, I guess that's the correct way.
I mean, you wouldn't turn "fuck it" into "fukkit," would you?