[vimmode]  fork the code from internal lab