wrote function to use gvim instead of vim when gui is running