Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 24 lines (13 sloc) 1.573 kb
748342e @lilydjwg Version 1.0: Initial upload
lilydjwg authored
1 This is a mirror of http://www.vim.org/scripts/script.php?script_id=3764
2
f83971b @lilydjwg Version 1.1
lilydjwg authored
3 Keep and restore fcitx state for each buffer separately when leaving/re-entering insert mode. Like always typing English in normal mode, but Chinese in insert mode.
748342e @lilydjwg Version 1.0: Initial upload
lilydjwg authored
4
f83971b @lilydjwg Version 1.1
lilydjwg authored
5 Requires: fcitx 3.6 or later, 4.0 or later will be better.
748342e @lilydjwg Version 1.0: Initial upload
lilydjwg authored
6
f83971b @lilydjwg Version 1.1
lilydjwg authored
7 Developing: It's a part of https://github.com/lilydjwg/dotvim
748342e @lilydjwg Version 1.0: Initial upload
lilydjwg authored
8
f83971b @lilydjwg Version 1.1
lilydjwg authored
9 A mirror repo: https://github.com/vim-scripts/fcitx.vim
748342e @lilydjwg Version 1.0: Initial upload
lilydjwg authored
10
f83971b @lilydjwg Version 1.1
lilydjwg authored
11 Warning:
12 1, It will be faster and better with Python (3 or 2) enabled Vim. But some old version Vim enabled both Python 2 & 3 may have some issues.
13 2, If you use Vim in terminal, to avoid the Esc delay, please set 'ttimeoutlen' to 100 or some other value. And check screen's 'maptimeout' or tmux's 'escape-time' option if you use it too.
748342e @lilydjwg Version 1.0: Initial upload
lilydjwg authored
14
15
f83971b @lilydjwg Version 1.1
lilydjwg authored
16 在离开或重新进入插入模式时自动记录和恢复每个缓冲区各自的输入法状态,以便在普通模式下始终是英文输入模式,切换回插入模式时恢复离开前的输入法输入模式。
17
18 要求: fcitx 版本 3.6 以上,建议 fcitx 4.0 以上。
19
20 注意事项:
21 1. Vim 如有 Python 3或2 支持可以获得更快更好的效果。但对于较旧的 Vim 版本,如果同时编译了 Python 2 & 3 支持,因为此 Vim 不能同时运行两个版本的 Python,而本脚本首先检查 Python 3,所以会导致出错或者 Python 2 不可用。
22 2. 终端下请设置 Vim 'ttimeoutlen' 选项为较小值(如100),否则退出插入模式时会有较严重的延迟。同样会造成延迟的还有 screen 的 maptimeout 选项以及 tmux 的 escape-time 选项。
23
Something went wrong with that request. Please try again.