/vim-smartim

[WIP] Used to automatically switch input methods when the VIM mode changes, now only available for Fcitx

Primary LanguageVim ScriptMIT LicenseMIT

vim-smartim

[WIP] Smart switch input method (zh<->en) automatically when (Neo)VIM mode change(INSERT<->NORMAL)

demo

Tested on my Linux(Manjaro-i3), I'm using the default PinYin IM and English(en_US) IM from fcitx:

PS: My shortcut for change IM is Control+,, it not appears on the screenkey echo bar

Installation

Prerequirement

  • Your environment are using fcitx to manage input method
  • Command fcitx-remote is executable

Then just install it with your favorite package manager like:

" vim-plug
Plug 'StrayDragon/vim-smartim'

It will work automatically, and enjoy it! 😄

TODO

  • Could enable or disable this plugin
  • Configurable: for specific filetypes

Inspired by

Reference

License

MIT