What exactly does it do when it’s used in the kitchen? Its primary function, however, is that of a flavoring agent. Vinegar may impart a flavor that is sour, acidic, sweet, mild, malty, woody, or even buttery, depending on the kind that you choose to use in your meal. It also has the ability to color or remove color from meals.