Fixes issues with vim_mode