gui compatibility

Works in gvim now.