I find it's easier to make the mistake if you think about lighting and then try to figure out which is the correct spelling... but if you go the other way around and think about how you'd write "lightning" then lighting just doesn't seem right for that. And thus, by the process of elimination, you have your answer.