1997 BMW 318i • 353,000 miles

Hi thanks for taking my question. Problem is: car idles at very low RPM and will not start when engine is hot. It cranks and turns over when hot but will not run without giving a little gas. As soon as I take my foot off the gas pedal, she dies. Been having some electrical problems due to a wiring issue in the trunk wiring harness. Recently replaced cam shaft position sensor and fuel filter. Any insight greatly appreciated.
December 24, 2012.

Often times we have what is referred to as a lazy pump. Check fuel pump pressure when it won't start to see if is producing within the manufacturer's specs. Also, check the idle air control valve and for vacuum leaks for the idle issue you have.