use vi to apply auto-identing

Thanks to http://stackoverflow.com/a/1453608