add vimentry#on event registry, and move event function apply from here to ex-config