Combine broccoli, bacon, walnut, raisins and onion in a large bowl.
Mix together mayo, vinegar and sugar to form a dressing.
Add dressing to the other ingredients and stir until everything is well coated. This is best if you give it time to rest in the fridge, but it's fine to eat it right away too.