as, if, when, etc. the spirit moves someone idiom
凭感觉;心血来潮
taking action only when you feel is the right time, not following a plan
It's impossible to predict what he'll do - he just acts when the spirit moves him. 根本不可能预测他会做什么——他做事情纯凭感觉。