The chemical reactions and pathways involving organomercury compound, any organic compound containing a mercury atom.