fix VimLeavePre event