Soaking the onions in a solution of vinegar softens the onions and imparts a pleasantly tart flavor to them. This, when accompanied with robust gravies or dishes, cuts down on the richness and makes the food more palatable.