A number of programs such as cpptraj in Amber, gmx tools, tinker modules can do this better than vmd, although the command line in vmd can do this efficient.
In the GUI panel of vmd, choose the analysis tools and you can find the rdf analyzing module.