If I find myself starring at the screen for more then 10 minutes and not writing a single line, I try to walk away - don't open a news site and waste time - literally walk away and go do something completely different. Take a walk, go for a bike ride, clean the house, take a shower, make something with your hands, whatever you do. Your mind will work on the problem in the background - it helps me often.
When working from home, I talk these problems through with my cat. By the time I have finished explaining things to him, I usually know what I need to do next.
If you are really blocked in front of your editor, it is likely you are opening your editor too early, or trying to solve something too big. Go back to the drawing board or user and split the task in smaller chunks.