I used to get injured a lot, now never. I swear by mobility exercises[1] -- they constitute the only change of habit I can pin that result on. They are distinct from both stretches and warming up (neither of which seem very necessary to me any more, except to the extent that I "warm up" by starting at a lower weight than what I'm eventually lifting.)
http://www.trainingdimensions.net/Training/ready_made_progs/...