coc-rime
v0.1.4-rc17
Published
Rime input method integration of coc.nvim
Downloads
376
Readme
coc-rime
Rime input method integration of coc.nvim
This extension is created by create-coc-extension
Dependencies
# Ubuntu
sudo apt-get -y install pkg-config librime-dev librime1
# ArchLinux
sudo pacman -S pkg-config librime
# Android Termux
apt-get -y install pkg-config librime
# Nix
nix-env -iA nixos.pkg-config nixos.librime
# Brew
brew tap tonyfettes/homebrew-rime
brew install pkg-config rime
Install
" command line
CocInstall coc-rime
" or add the following code to your vimrc
let g:coc_global_extensions = ['coc-rime', 'other coc-plugins']
Commands
rime.enable
: enable this source temporarily.rime.disable
: disable this source temporarily.rime.toggle
: temporarily toggle the status of the source.
Lists
You could use CocList
to switch between schema.
:CocList rime_schema
User Configuration
rime.enabled
: Whether to enable this source.rime.priority
: The priority of this completion source.rime.schemaId
: TheschemaId
selected whencoc-rime
start. You could get it fromrime_schema
list.rime.priority
: Priority of Rime completion sourcerime.traits.shared_data_dir
: Path(s) where rime data storesrime.traits.user_data_dir
: Path(s) where rime configuration storesrime.traits.*
: More rime traits
License
MIT
Related Projects
IM for vim
- fcitx.vim: for fcitx5
- vim-xkbswitch: for ibus
- VimIM: Stop maintenance
本项目希望为不可能使用输入法的环境中提供必要的中文支持:
- 文本终端。例如在构建 Linux 时添加 cjktty-patches 可以在文本终端显示中文,但在不使用 fbterm 时缺乏输入中文的方法。
- Android 。受限于 Android 权限机制,不可能在
termux 中获取输入法 APP
的状态以实现:
- 退出插入模式时恢复英文输入模式
- 进入插入模式时恢复上一次退出插入模式时的中、英文输入模式
Rime frontends
See here.