That's good to hear. I very recently got a 318is and I probably have some similar work to do.
But as for the rough idle, what immediately comes to mind is ignition and vacuum tubing. Since you replaced all of your vacuum tubing, I would pretty much omit that as a possibility unless you left one vacuum port unused or a line slipped off.
Have you replaced your spark plugs and spark plug wires? The wires will make a slightly rough idle but fouled, broken, or used up spark plugs will definitely make very noticeable problems while the engine is running and are very obvious at idle. I just dealt with spark plug problems on my Landcruiser earlier today. Turned out to be just a really small problem with one of the spark plugs, but it prevented one of the cylinders from firing, which made for a rough idle and exhaust that smelled of unburned gas.
It's pretty easy to pull out the spark plugs, inspect them, and either clean them with a little brake cleaner if they are still decent or replace them with new ones if they look horrid. And alternatively, if you don't want to replace the spark plug wires ever again, for almost the same cost you can do a Coil-on-Plug conversion, a search for "COP conversion" will help you with that.
Cheers!