Finely shred the cabbage and carrots.
Finely chop the onion.
Place the prepared vegetables in a mixing bowl.
Add mayonnaise, vinegar, sugar, salt, and pepper, then mix well.
Let it rest in the refrigerator for about 30 minutes to marinate.
Serve in a bowl to finish.