And you don’t just write straight ahead. You plan. You write. The plan doesn’t work. The characters won’t behave. You re-plan, have a great idea, rip up 3000 words and change the direction it was going.
This goes on daily.
Then you re-write until it sounds as if you had command of the plot all along. Sometimes you write; “INSERT MIRACLE HERE” and keep going, so you don’t lose your idea.