It is best to use a stainless skillet in this recipe. You DO want the onions to stick to the pan when cooking them, which will not happen with a nonstick skillet.
If you run out of vinegar and still need to deglaze the pan, just use water.
If your onions start to burn, just turn down the heat to medium-low or low.