Updated g() for the case of no gvim