This allows VimR to switch IME from a non-ascii input source to the ascii one when in normal mode, and swich to last input source used in insert mode when enters insert mode.
Thank you! This has bothered me few times, too, but did not have the chance to find out how to handle input sources. Sorry, it took so long; I've commented few minor things.
This allows VimR to switch IME from a non-ascii input source to the ascii one when in normal mode, and swich to last input source used in insert mode when enters insert mode.