How to get over man

Honestly how tf do you get over a guy who you dated for years? We’ve lived together a few months after we met until today. Even though he did me so dirty and cheated the whole time, was verbally abusive, and straight psycho controlling I still find myself crying for leaving. I know I deserve a real man and someone to love my child as much as I do. How do you get over somebody?