spur-of-the-moment

Etymology
See.

Adjective

 * 1) Spontaneous; impromptu.
 * It was a spur-of-the-moment decision to buy the car.