yes, rubbing with vinegar is a good choice because alkaline batteries don't have acid like lead-acid batteries in cars but.... alkali !
This is just the opposite.
Vinegar is an acid (5% acetic acid) and neutralizes the battery's alkali.
Alternatively, you may use highly diluted tartaric acid or ascorbic acid, both are also complexing metal ions, and moreover, ascorbic acid ("vitamine C") is also a redox agent against oxidative or reductive matters, like, e.g., Mangan oxide in alkaline batteries.
Cleaning with 50-70% alcohol afterwards will probably remove the rest of the corrosion (and excess of acid ions).
NXC CHESS for NXT: http://www.mindstormsforum.de/viewtopic.php?f=70&t=6790
indispensable for NXC + EV3-C: easy + trouble-free network & sensor+motor remote control for rs485, BT, USB!