add vim editor support (mostly stolen from falconpl)