on_the_spur_of_the_moment
1. [ adverb ] on impulse; without premeditation
Synonyms: suddenly
Examples:

"he decided to go to Chicago on the spur of the moment" "he made up his mind suddenly"