Ⅰ. 插件描述
A simulate fcitx-remote to handle osx input method in command lineⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'codefalling/fcitx-remote-for-osx'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'codefalling/fcitx-remote-for-osx'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'codefalling/fcitx-remote-for-osx'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/codefalling/fcitx-remote-for-osx
Ⅳ. 文档说明
fcitx-remote for OS X
fcitx-remote
fcitx-remote is a tool to control fcitx state via console. Users in
Linux use it for interaction with their vim or emacs to avoid being
interrupted by input method.
Plugins
- Vim: [fcitx.vim - keep and restore fcitx state when
leaving/re-entering insert mode: vim
online](http://www.vim.org/scripts/script.php?script_id=3764)
The new version of this plugin uses socket to communicate fcitx which is
not emulated by current version of fcitx-remote-osx, so you have to use
the backported version under the directory so/fcitx.vim of lilydjwg/fcitx.vim.Also available as a stand repo at CodeFalling/fcitx-vim-osx
- Emacs:
cute-jumper/fcitx.el
. Due to the limits of the Wubi Xing input source, you may not use Emacs with it.
How this works
fcitx-remote for OS X dosen't rely on fcitx at all. It is just a small
program that responds to fcitx.el etc. just like it's really a fcitx-remote in
GNU/Linux.
You can choose your Chinese input method and English layout(or others)
in compilation.
Settings
There are two modes:
- GENERAL mode: use keystroke Ctrl-Shift-Z to switch input method, see instructions below.
SPECIFIC mode: switch to specific input method by name. Builtin support is included for:
- Baidu Pinyin
- Baidu Wubi
- Log Input
- Log Input 2
- OS X Pinyin
- OS X Shuangpin
- OS X Wubi
- Qingg
- QQ Wubi
- Sogou Pinyin
- Squirrel Rime(old verison)
- Squirrel Rime
Installation
git clone https://github.com/xcodebuild/fcitx-remote-for-osx.git
cd fcitx-remote-for-osx
./build.py build all
# general method
cp ./fcitx-remote-general /usr/local/bin/fcitx-remote
# squirrel for example
cp ./fcitx-remote-squirrel-rime-upstream /usr/local/bin/fcitx-remoteInstallation via homebrew (obsolete)
brew install fcitx-remote-for-osxSystem Settings for methods other than general
None.
System Settings for GENERAL method only
Set your shortcut for Select next source in input menu to Ctrl-Shift-z.

And set your English input method to US(美式英语)

Enjoy!