Some common synonyms of whim are caprice, crotchet, and vagary. While all these words mean "an irrational or unpredictable idea or desire," whim implies a fantastic, capricious turn of mind or inclination. // an odd antique that was bought on a whim