Change the exception throw way for VIM register.