Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

ibus.vim

Change ibus input engine automatically when switch between normal and insert mode.

Features

  • Remember status when switch windows even the Share the same input method among all applications option is off.

Configuration

let g:ibus_insert_engines = ['rime', 'mozc-jp']
let g:ibus_normal_engines = ['xkb:us::eng']
let g:ibus_no_mappings = 1

g: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.

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>IbusToggle

Switch to next input engine.

imap <C-A-I><C-A-P> <Plug>IbusEngineNext
nmap <C-A-I><C-A-P> <Plug>IbusEngineNext

Switch to previous input engine.

imap <C-A-I><C-A-O> <Plug>IbusEnginePrev
nmap <C-A-I><C-A-O> <Plug>IbusEnginePrev

FAQ

Why 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.

Related Projects

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages