Term: spur the moment
Example: bob: hey, man, why didn't you invite me to the beach with you guys? fred: sorry, man, it was spur the moment
Definition: something done on the fly, without any prior planning