Most of your bad habits are caused by two things... stress and boredom. Bad habits address certain needs in your life and for that reason, you need to replace them with habits that satisfy that same need.
I know it is hard to stay committed to any behavior change like exercising daily. I also know how much better you'll feel if you exercise, stay fit, and eat right. Try to think of exercise as movement rather than a strict regimen.