What is vainly?

Vainly means an action or effort that is done without success. It is used to describe a situation where someone has attempted to achieve something but has failed. Vainly also means prideful or excessively flattering oneself. For example, if someone is vainly boasting about their achievements, it means they are indulging in self-praise without any genuine reason. The word vainly is often used in literature, poetry, and everyday conversation to describe a lack of success or achievement.