Apparently, it's a word that people use to describe anything they want it to describe.
However, it describes erratic, unplanned, unpredictable, last minute behavior. Usually behavior that is irresponsible and indifferent to potential negative consequences.
Instead of going home after work, he very whimsically drove to Las Vegas, without telling anybody.