I've never smoked, but I have tried to quit candy. When I found that it was very easy for me and I'd stayed off the sweets for some time, I started again, because now I knew that should I ever want to quit I would be able to. The way I managed to quit it, after failing a number of times before, was that I did two things. First I made sure to tell myself it was great to have quit the habit, and secondly I also made sure to try to make every craving for sweets into something positive, thinking "Great! I'm getting cravings! That means I've managed to stay away from candy!" So I guess that's the best advice I can give you; keep telling yourself "I've wanted to quit for so long, and I'm so glad I've managed to pull it off!" Whenever you think ""it'd be great with a smoke right now!" remind yourself that actually, it'd be horrible, and you're glad you haven't had one.
Most importantly: Don't limit it to a few or just one cigarette a day. Don't do that, just quit cold turkey, 'cause limiting it to one a day makes you think "Ah... Soon I'll have my wonderful cigarette..." and you'll start perceeving perceeving perceiving regarding the cigarette as a kind of wonderful reward, and not as something unpleasant you're glad you've managed to stay away from.