Vinegar does help to kill mold but bleach is much better at killing mold than vinegar is.
If you really want to kill mold then use the bleach if you have it as it will kill the mold faster and also disinfect the surface you're cleaning with the bleach.
Vinegar also disinfects some and kills mold.
However bleach is much better at killing mold and disinfecting things and surfaces.
If you do use bleach though make sure you open a window before using the bleach to allow ventilation because breathing in bleach fumes can be deadly.
Also never ever mix ammonia with bleach as it will create a deadly gas.