So bring this back from the dead. Thought a new distributor would have solved the problem. Was going to start a new thread but just copy and paste this here.
Background on the car. It's a 91 civic ex sedan. Has the stock D16a6 engine. Running a cheap ebay turbo setup with a chipped p28. Car has ran great for over 2 years. The other day the check engine light came on and it started running rough. As if it was miss firing. I check the code and it was the no.1 cylinder sensor. So I got another distributor. While I was changing that I decided to change the plugs and wires. I pulled one of the plugs and it was soaked in oil. The grommet around the spark plug tube had leaked. No big deal it's done it before. So I bought a valve cover gasket kit, plugs, wires and distributor. I get everything installed, start it up and it runs great. No cel, no problems. I take it around the block and ran awesome. Got back home and shut it down. My wife came home asking if I fixed the car and I told her to take it for a test drive. She couldn't make it out the driveway it was missing so bad. So I checked the plugs, they was fine and so was the cap and rotor button. I also checked the compression. Starting a cylinder no.1, 170, 180, 180 and 210 on cylinder no.4. It was late last night when I got done working on it. I said screw it, it will either make it to work in the morning or I'll drive it off a cliff. I went out this morning and started it and it ran just as fine as could be. No missing, no rough idle, nothing. Drove it to work with not a problem one. Once I got to work I turned the car off for about a minute. Then started it back up and it was missing bad just like the night before when my wife went to test drive it.
So can any help me figure out why my car runs just fine as can be when first started after sitting over night, then after its warm and to turn it off and start it up. It runs like shot missing really bad? It also ran fine the whole way to work and was up to operating temp. Oh and I did check the timing. Any help at all will be appreciated. Thanks ks in advanced.