I had that problem. After cleaning the Idle Control valve and you still have rough idling. It means you have to replace the Idle Control pulley (not sure if that is the name). On the 318 M42 (my car) engine it looks different than the newer M44.
1995 318s had either 42 or 44 so check what you have first at
RealOEM.com Online BMW Parts Catalog
then you can replace the pulley. I also recommend replacing the pulley belts at the same time since you will have to remove them as well. You will save in labor $$$ down the line.
A new 318i pulley goes anywhere from $30s and up. Belts are about the same.