(on the) spur of the moment

Suddenly.

We decided to go to Hong Kong on the spur of the moment.