I am glad you realize that your ex wasn’t good to you and that there is something not okay about wanting to stay in a relationship that was so abusive and damaging.
The work here isn’t so much about getting over him, as to be getting into you. You need to reclaim your life and focus on self-care, intellectual and emotional growth. I recommend you start refocusing your attention on developing yourself. Take classes in the field you are interested in, form some new friendships and relationships to broaden you social network, and start therapy so you can find out why you were drawn to and stayed with a man who did not have your best interest at heart. The find help tab at the top of the page will help you find someone in your area.