mirror of
https://github.com/lilydjwg/fcitx.vim.git
synced 2026-01-08 03:47:27 +08:00
feat: support search mode
This commit is contained in:
parent
54febc8b22
commit
5a5f297d4e
2 changed files with 4 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
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.
|
Keep and restore fcitx state for each buffer separately when leaving/re-entering insert mode or search mode. Like always typing English in normal mode, but Chinese in insert mode.
|
||||||
|
|
||||||
The branch uses a server-client architecture to support cross-user usage (e.g. `sudo vim`) or even cross-host usages (not implemented yet).
|
The branch uses a server-client architecture to support cross-user usage (e.g. `sudo vim`) or even cross-host usages (not implemented yet).
|
||||||
|
|
||||||
|
|
@ -18,7 +18,7 @@ Warning:
|
||||||
|
|
||||||
1. 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.
|
1. 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.
|
||||||
|
|
||||||
在离开或重新进入插入模式时自动记录和恢复每个缓冲区各自的输入法状态,以便在普通模式下始终是英文输入模式,切换回插入模式时恢复离开前的输入法输入模式。
|
在离开或重新进入插入模式或搜索模式时自动记录和恢复每个缓冲区各自的输入法状态,以便在普通模式下始终是英文输入模式,切换回插入模式时恢复离开前的输入法输入模式。
|
||||||
|
|
||||||
这个分支使用服务端/客户端架构,以便支持跨用户的用法(如 `sudo vim`),甚至是跨主机的用法(尚未实现)。
|
这个分支使用服务端/客户端架构,以便支持跨用户的用法(如 `sudo vim`),甚至是跨主机的用法(尚未实现)。
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,8 @@ try " abort on fail
|
||||||
au InsertLeave * py3 fcitx2en()
|
au InsertLeave * py3 fcitx2en()
|
||||||
endif
|
endif
|
||||||
au InsertEnter * py3 fcitx2zh()
|
au InsertEnter * py3 fcitx2zh()
|
||||||
|
au CmdlineEnter / py3 fcitx2zh()
|
||||||
|
au CmdlineLeave / py3 fcitx2en()
|
||||||
endif
|
endif
|
||||||
endtry
|
endtry
|
||||||
" ---------------------------------------------------------------------
|
" ---------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue