Did he have backstory notes when writing SW in 1975? Probably had that Darth Vader/ObiWan fought and Vader fell into Lava, probably had the Empire taking over the galaxy, and The Emperor ends up ruling. Again, just basic notes to write the first movie.
Did he have anything planned out? NO WAY!!!! I will be honest, it doesn't bother me that he didn't, heck I love ESB, but that movie was probably written in the context AFTER 1977. I just get annoyed that Lucas won't admit that he didn't, as I would love to see a documentary about Lucas stating when they decided to make Vader/Luke's father into one person, maybe it hit him 3 in the morning in 1978, "Hey Marcia, I got it!!!! Darth Vader is Lukes father!!!!!"