Vanity and pride are different things, though the words are often used synonymously. 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.
Source:(ed. Penguin Books, 2006), Volume I, Chapter 5, Page 21