Vanity in the context of Ecclesiastes does indeed mean worthless or pointless. The general point of the book is that human endeavor, apart from God, is ultimately pointless and passes away like the wind.
Since the author was Solomon as he was aging and agonizing over the fact that he'd built his kingdom into something vast, powerful, and wealthy, and was about to die and give it to his recognizably worthless sons. This rings poignant.
Vanity in the context of Ecclesiastes does indeed mean worthless or pointless. The general point of the book is that human endeavor, apart from God, is ultimately pointless and passes away like the wind.
Since the author was Solomon as he was aging and agonizing over the fact that he'd built his kingdom into something vast, powerful, and wealthy, and was about to die and give it to his recognizably worthless sons. This rings poignant.