Pregnant and left my boyfriend or he left us

I'm 27weeks pregnant. I was in a relationship with a abusive man he went to jail got out took domestic violence classes I thought we would be okay, he wasn't working living with his mom he just seemed like he wanted nothing to do with me after he got out of jail I didn't understand why he didn't love me, I patch things up he asked me to move in with him. He just started getting angry like why was I always there in his space I don't get it we don't go out or do anything. His childhood: "his dad left him and his three younger brothers and his mom for cheating. He lived in a trailer while his dad lived in an apartment with his new girlfriend and his dad had two more kids with that new girlfriend." So in my relationship my boyfriend started treating me horrible no affection always wanted space he breaks up with me in the worst way he said he can marry a Hollywood girl, and that I can live in a trailer and he would live in a apartment send me money until he tried to get full custody where he would live by himself in a apartment. I started wondering where does he get this from his own childhood what his dad did :/ breaks my heart. I try staying being a family that same day he pushes me against the wall grabs my belly and asked if I want a abortion he could cause it. I run upstairs he's choking me and I get up I'm in his bedroom he puts his knee on my stomach and keeps pushing I got away he takes my cellphone and I'm crying he asked what's wrong I talk to him tell him it's him and he started getting mad at me I pass out asleep in the morning I go look for my cellphone, he goes to the bathroom and I followed him to find out and he tried to pee on me! I broke up with him. I just went home but I started thinking what about the baby, birthdays Christmas etc. I started talking to him. Worried about his dad him becoming his father :/ we got back together but I don't know what kind of relationship it is where he lives at his mom's I live with my parents and he barely text me and he's busy all the time every weekend and he can't make it to the doctor appointment it's always something being late or telling me I didn't remind him. Him saying we are in a relationship I should stay home and shut up don't text him and apparently I should look at doctors by myself look at Apartments for us by myself and apparently I should look at baby stuff online instead of going to the store together it's our first baby, we should do all these things together he says he has to work its the least I can do but honestly a apartment don't you think that's something you do together. He was cheating probably putting locks on his phone deleting text. My dog died. I wanted comfort so I called him show up at his mom's house Sunday night at 7pm he pulls up at 11pm after I text him to talk and give me a ride home. He's wearing pajamas no socks and shoes where's he been sleeping?? He said not with some girl oh that explains why he doesn't have time for his pregnant girlfriend. So I said I want to stay the night he comes up with all excuses says he is working and going to work at 11pm I say alright I'll go with you go help. He started getting nervous says no, what kind of guy turns down sex I'm assuming staying the night in his eyes means sex so wth like he's with someone else? Any way I said when are we getting a apartment together he said oh that's your problem cause we aren't living together that's what you want then he said if I got along with his mother I could live at that house smh. So what now its a lie getting a apartment together I'm trying to figure out our relationship plans and he forgets next week we have a doctor appointment and yells why didn't I remind him I told him three times. So he's in a hurry trying to be at this other place where he's wanting to be apparently working in pajamas and no socks and shoes and can't take his girlfriend so we started fighting his car smells straight up like perfume he breaks the air freshener says it's that. He starts trying to kill me just beating me up I think it's because he has to get to the other place but dam he almost killed me. I left the car he takes off I'm left wondering wth does this guy want be clear if you want to break up I just feel so dam hurt him lying to me about working for the baby lying about where he's at on the weekends I just don't know why I love him. I started crying and tell my dad he said to call the police, I called the police but now I feel worse it's me dealing with this why did he choose to treat us like this what about his baby and me all the promises man I really feel beat up I went to the emergency room but emotionally I'm raw I just don't understand why he didn't try harder to make this work, going out seeing friends is okay you can invite your girlfriend sometimes you know or introduce her. I just don't know what to do I'm scared leaving the baby with him and I'm scared of having this baby I feel like I'm unprepared he made me not work I said I want to get a job how many times he screamed at me not to. Now where's all the money for the baby he said. I'm doing everything and where the hell is he. I'm just so lost how do you survive some thing like this guy abuses me tries to piss on me lies to me hides like a coward for what