Thinly slice the onion and pack it into a clean glass jar.
In a small saucepan, combine the vinegar, water, sugar, and salt. Heat just until the sugar and salt dissolve (no need to boil).
Pour the warm brine over the onions, making sure they're fully submerged.
Let cool to room temperature.
Cover and refrigerate for at least 30 minutes. They're even better after a few hours or overnight.
Storage
Keep refrigerated for up to 2-3 weeks.
Always use a clean utensil when removing onions from the jar.