I had this a little.
I didn't actively fight it. What I did instead was note in my own head that I somehow wanted a cigarette and think to myself "OK, if I still want one in 20 minutes, I'll have one", and then went and did something else instead. An hour or two later I'd think "Oh yeah, that was weird, didn't I want a cigarette a while back?"
Very occasionally it comes back - a sunny day and a beer garden with a few pints and a pack of cigs feels like something I'd very much enjoy, for example - but it's brief and I can quickly rationalise it: "how strange a thought, for a non-smoker".