So one of the fruits of the Spirit is humbleness. Vanity is the opposite of humbleness, and is therefore a sin.
Also, from Ecclesiasties:
Yet when I surveyed all that my hands had done and what I had toiled to achieve, everything was meaningless, a chasing after the wind; nothing was gained...