Preheat a wok (or cast iron pan) until it starts to smoke lightly. This is very important to prevent the tofu from sticking.
Add 2 tablespoons oil, along with the ginger slices. Over medium heat, fry the ginger for 1 minute. Add the tofu, and take 10 minutes to brown the tofu on at least 2-3 sides.
When the tofu is lightly browned (or to your liking), add in 1 tablespoon Shaoxing wine, 2 tablespoons Chinese black vinegar, 3 tablespoons light soy sauce, 4 tablespoons sugar, and 5 tablespoons water. Stir and mix everything well. Turn up the heat to bring it to a boil.
Cover and reduce the heat to medium/low. Simmer for 15 minutes. Halfway through, check to make sure the liquid is not drying up. If so, reduce the heat further and add in a little more water if needed.
After 15 minutes, remove the lid. The sauce should be mostly cooked down. With the heat on high, gently toss the tofu to ensure every piece is coated in glistening sauce. This process takes a couple of minutes. Reduce the liquid until there is ¼ cup of liquid left and the tofu is gleaming with sauce. Serve immediately.