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.
The real evils, indeed, of Emma’s situation were the power of having rather too much her own way, and a disposition to think a little too well of herself.