Change ibus input engine automatically when switch between normal and insert mode.
- Remember status when switch windows even the
Share the same input method among all applicationsoption is off.
let g:ibus_insert_engines = ['rime', 'mozc-jp']
let g:ibus_normal_engines = ['xkb:us::eng']
let g:ibus_no_mappings = 1g:ibus_insert_engines are input engines used when switch to insert mode. Use ibus engine to find the name of input engine.
g:ibus_no_mappings = 1 will disable default key mapping.
Toggle ibus.vim on/off.
imap <C-A-I><C-A-I> <Plug>IbusToggle
nmap <C-A-I><C-A-I> <Plug>IbusToggleSwitch to next input engine.
imap <C-A-I><C-A-P> <Plug>IbusEngineNext
nmap <C-A-I><C-A-P> <Plug>IbusEngineNextSwitch to previous input engine.
imap <C-A-I><C-A-O> <Plug>IbusEnginePrev
nmap <C-A-I><C-A-O> <Plug>IbusEnginePrevWhy input engine changing is so slow when switch between windows?
ibus restore input status when Share the same input method among all applications is off. If change input engine after focusing vim immediately, ibus will change it back, so this plugin will delay the change 0.5 seconds when switch between windows.