Things have a nasty 'habit of not turning out' the way you expect them to. [=things often do not turn out the way you expect them to]
He reached into his pocket for his keys 'by/from force of habit'. [=he did it without thinking because it is what he usually does]
I'm 'not in the habit of' making predictions, but I don't think there's much doubt about who will win this election.
(..) aware of it, and prepared for it. You need not have concerned yourself as to travel so far. Why should I not be aware of the habits of the heathen? I promise you, we are already well prepared for any incursions into our kingdom. I'm not sure you realize the scale (..)2017 TvShow: Vikings Title: The Great Army Season: 4 Episode 17