Maintain a primary, exact distance as appropriate to road, layout and other users. Wider out past junctions, parked cars, pedestrians etc, closer left approaching right hand curves.
And then do that which few cyclists bother - look somewhere other than 10 degrees either aide of dead ahead, and thus maintain superior situational awareness which allows you to respond earlier than you otherwise would have been able. That 1 second extra reaction time difference could save your life.
And then give a cheery wave to those that do treat you with respect. Its a nice feel good thing, and they'll be more inclined to continue to drive sensibly. If its a local road the odds are they'll encounter you again, so all the more reason to foster good relationships with other road users.
None of it is dfficult. As adult road users this should be second nature, but its frightening how it seems not to be so for so many people.