Question: do sth on a whim?
Answer: When you have a small, temporary feeling of wanting to do something, it's called a "whim". Doing something "on a whim" means doing it wihout planning it carefully or thinking about it seriously. You do it just for fun. "On a whim" is a neutral phrase: not positive or negative, and neither very formal nor very casual.