For instance, the virtue of honesty in money matters means a habit of respecting the property of others which makes it easy for me to return money belonging to someone else that I have found or easy for me not to surrender to a temptation to steal. In this case we have taken the general idea of a virtue and applied it specifically to a moral matter, to doing moral good and avoiding evil. The matter of habit, of acquiring a skill or ability or tendency through repetition or custom or gradual development or practice, remains. Since the time of Aristotle at least, writers interested in moral matters have noted the importance of habit in developing character. That is, they note the importance of developing habits which dispose children, and then adults to do the right thing.
Custom becomes second nature.
Habits incline us one way or the other. These habitual inclinations, if they dispose us towards doing good, are virtues. If they dispose us towards doing evil, they are vices. A virtue doesn't destroy free will. A truthful person, for instance, is someone who is accustomed to telling the truth, even when doing so is embarrassing or personally costly.