added apex invim switch to support in and out of vim execution