Riding in London I get this more often than I'd like. A car driver decides that what I've done (normally riding along minding my own business, I'm surprisingly law abiding on a bicycle the vast majority of the time) is *WRONG* and so they punish pass and finish hugging the kerb. I tend to just go round them on the outside, they're in traffic (it's London remember) and do my best to ignore them. Sometimes if they've made me feel really petty I take primary (I'm only holding them up until we reach traffic again anyway, London, remember) although I often don't like myself afterwards :-)
Of course, there was the MPV that was so desperate for me not to go inside him at the junction (a junction I'd never go inside on, far too dangerous) that he not only hugged the kerb, but bounced his back wheel off the low bollard thing when he mounted the pavement and tried hard to flip his car. Oh how I smirked.