A virtue is a habitual and firm disposition to do the good. It allows the person not only to perform good acts but to give the best of himself. The virtuous person tends towards the good with all his sensory and spiritual powers; he pursues the good and chooses it in concrete actions. – CCC 1803

When You Have An Evil Thought, Do This! | St. Alphonsus Liguori
"When an evil thought is presented to the mind, we must immediately endeavor to turn our thoughts to God, or to something which is indifferent. But the first rule is, instantly to invoke the names of Jesus and Mary and to continue to invoke them until the temptation...