Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gVim 英文状态下输入 ')'、']'、'}' 后必然自动切换到中文状态 #362

Closed
Ace-Who opened this issue Apr 20, 2019 · 8 comments

Comments

@Ace-Who
Copy link

Ace-Who commented Apr 20, 2019

Windows 7
Weasel 0.13.0

Vim 无此现象。

有时还有输入法失效,必须切换为其输入法,再切回 Weasel 的情况。还没找到规律,不过已经在连续几个版本中存在了。

@lotem lotem transferred this issue from rime/home Apr 20, 2019
@idnsunset
Copy link

#331 类似情况,0.11.0 版本暂没有这种情况。

@winstarst
Copy link

升级到新版本后暂无此问题

GVIM:8.2 2019 Dec 12 MS-Windows 64-bit GUI version 带 OLE 支持
小狼毫:0.14.3

@Ace-Who
Copy link
Author

Ace-Who commented Mar 9, 2020

gVim: 8.2.184
Weasel: 0.14.3

问题依旧。

@Ace-Who
Copy link
Author

Ace-Who commented Apr 27, 2020

采用了 -u NONE --noplugin 参数启动后,) ] } 不会触发切换。normal 模式下的 i I a A o O f F t T r R 命令总是会触发的。

@lthon-x
Copy link

lthon-x commented Sep 2, 2020

今天我也遇到这个问题了,定位到应该是 auto-pairs 插件造成的。贴一个网友的 解决办法

经排查是 jiangmiao/auto-pairs 插件映射了 <BS> 键造成的,会造成类似回到 Normal Mode 然后又进入 Insert Mode 的情况。

解决方法:

使用插件提供的选项 let g:AutoPairsMapBS = 0 禁用对 <BS> 键的映射,要删除成对括号时使用插件提供的另一个快捷键 <C-h>。

该插件映射的键位很多,包括回车、空格、括号和引号等等,我没找到好办法解决,只能禁用了。

@Ace-Who
Copy link
Author

Ace-Who commented Sep 3, 2020

我自己写的 vim-autopair 插件也和这个问题有关,不过我的插件定义的按键映射是 <C-R>=...<CR>,不是从 normal 模式切换到 insert 模式。经手动验证,insert 模式下使用 <C-R>= 确实会触发 rime 切换到中文。

@idnsunset
Copy link

idnsunset commented Dec 8, 2020

我自己写的 vim-autopair 插件也和这个问题有关,不过我的插件定义的按键映射是 <C-R>=...<CR>,不是从 normal 模式切换到 insert 模式。经手动验证,insert 模式下使用 <C-R>= 确实会触发 rime 切换到中文。

确认 <C-r>= 会切换到中文。另外,与插件并没有关系,我没有安装 autopair 之类的插件,一样有问题。这些问题从 0.12 版本就开始存在,我已经退回到 0.11 版本。

@fxliang
Copy link
Contributor

fxliang commented Mar 8, 2024

fixed by #1096

@fxliang fxliang closed this as completed Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants