Already done.
From what you've said he is the one who sucks, not you. Don't blame yourself for his behavior because you had nothing to do with it. He will move on to some other woman and treat her just as ####ty as he did you, then it can all be *her* fault.
Stop blaming yourself and wondering what you did wrong. There is a nice man out there for you who will treat you nicely and you'll have a good life, and you'll marvel that you spent one second of your life trying to please the other ahole.
Chin up, girl. Better days are coming.