It takes time and acceptance that this relationship wasnt working and would never work If you think about your child you will see that a child brought up with a lot of abuse in its life isnt going to be too happy ,you have to think of the child aswell as your self. You stay away from him, he will not change they never do, unless they really want to and get help with some therapy/counseling. When you feel upset and missing him visualise what it would be like and how your child would suffer that is important ,you are protecting your child.
Just think how he treated you and you will soon be thankul you got out move on with your life he is worhless luck jo