The Lions improved to 5-1 with a 31-29 victory over the previously unbeaten Minnesota Vikings.