workaround bad event ordering from gvim