Vanity and pride are different things, though the words are often used synonimously [sic]. A person may be proud without being vain. Pride relates more to our opinion of ourselves, vanity to what we would have others think of us.
(from Pride and Prejudice, by Jane Austen)
More HERE about pride.