Liz - as hard as it was for you to leave, you did the right thing. You had already done everything that you could to help him through this and the way he treated you - well, I'm surprised you could put up with it as long as you did. As Amy said, when people are sick, hurt, confused, sometimes they do temporarily lash out at the ones they love (I went through this with my father, who was very ill for 3 months before he died) but in the end, they are sorry and grateful to have had the support. However, you've been going through this for longer than you should ever have had to, and it's time to think of YOU, as hard as that is.
Maybe he'll come to his senses this way. It's probably the only way he will, so stay strong.