vain (adj.) Look up vain at Dictionary.com
c. 1300, "devoid of real value, idle, unprofitable," from Old French vain, vein "worthless, void, invalid, feeble; conceited" (12c.), from Latin vanus "empty, void," figuratively "idle, fruitless," from PIE *wa-no-, from root *eue- "to leave, abandon, give out" (source also of Old English wanian "to lessen," wan "deficient;" Old Norse vanta "to lack;" Latin vacare "to be empty," vastus "empty, waste;" Avestan va- "lack," Persian vang "empty, poor;" Sanskrit una- "deficient," Armenian unain "empty").

Meaning "conceited, elated with a high opinion of oneself" first recorded 1690s in English; earlier "silly, idle, foolish" (late 14c.). Phrase in vain "to no effect" (c. 1300, after Latin in vanum) preserves the original sense. Related: Vainly; vainness. Compare also vainglory.