In a medium bowl, combine onions, vinegar, sugar, lemon juice, salt, and pepper to taste. Stir until sugar is dissolved. Set aside for about 30 minutes, giving onions a quick stir now and again. Onions will release additional liquid as they marinate.