replace EventManager with after/ftplugin