- When vim switches to insert mode:
- If the character before cursor is a Chinese character, switch to Chinese IME and put it in Chinese mode.
- If the character before cursor is an English character, switch to Chinese IME and put it in English mode.
- Switch English IME whenever vim switchs to normal mode.
hongqn/vim-osx-ime
Automatically switch IME status when entering/leaving insert mode
Objective-CGPL-3.0