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

Vim 中能否记住 ESC 前的状态? #331

Closed
idnsunset opened this issue Jan 31, 2019 · 8 comments
Closed

Vim 中能否记住 ESC 前的状态? #331

idnsunset opened this issue Jan 31, 2019 · 8 comments

Comments

@idnsunset
Copy link

idnsunset commented Jan 31, 2019

更新到 0.13 版后,遇到如下情况:第一次进入 Insert 模式,激活输入法,按 Shift 切换到英文输入模式。回到 Normal 模式后,输入法会自动处于 inactive 状态。再次进入 Insert 模式,输入法总是会处于中文输入模式。对于大篇幅中英文混合的文本输入,每次从 Insert 模式回到 Normal 模式再进入 Insert 模式,都需要按一次 Shift 切换到英文输入模式,非常扰人。有没有办法在进入 Insert 模式后沿用前一次 Insert 模式下输入法的中/英文模式?

@idnsunset
Copy link
Author

另外,在 Normal 模式下,输入法处在英文输入模式,但是按 R 键之后,会自动切换到中文,Vim 的替换命令无法执行。前一个版本没有这样的问题。

@mdmawat
Copy link

mdmawat commented Feb 3, 2019

另外,在 Normal 模式下,输入法处在英文输入模式,但是按 R 键之后,会自动切换到中文,Vim 的替换命令无法执行。前一个版本没有这样的问题。

Same issue on my Windows 7 machine. Pressing Enter in Insert mode or Press R in Normal mode always have the input method switch to Chinese input mode, which is pretty annoying. I've switched back to version 0.11 as 0.12 has the same issue.

@bickman
Copy link

bickman commented Feb 6, 2019

我觉得在vim下面weasel的状态有点混乱,没有规律,大部分情况按插入模式,直接就进入非输入法状态,但是切换几次,又变成在命令模式进入非输入法状态,进入插入模式变成中文输入法的良好状态

@ijliym
Copy link

ijliym commented Feb 12, 2019

你们的 Vim 设置了这个吗?

" 插入模式时,启用输入法(For Win10+Rime; :h IME) 2018-07-31 19:43
set iminsert=2

我也觉得 Vim 的输入状态是点问题,比如,我在插入模式时,将输入法切换为英文输入(Shift),再输入 ()、[]、{}、''、"" 等符号或者使用复制、粘贴、剪切这些快捷键时,输入法状态都会切换为中文。

@idnsunset
Copy link
Author

idnsunset commented Feb 16, 2019

你们的 Vim 设置了这个吗?

" 插入模式时,启用输入法(For Win10+Rime; :h IME) 2018-07-31 19:43
set iminsert=2

我也觉得 Vim 的输入状态是点问题,比如,我在插入模式时,将输入法切换为英文输入(Shift),再输入 ()、[]、{}、''、"" 等符号或者使用复制、粘贴、剪切这些快捷键时,输入法状态都会切换为中文。

设定这个选项并没有什么用,在 Vim 中调出 Rime 时,该选项自动变为 2。设置这个选项的原因,好像以前的版本在普通模式下 Rime 无法自动切换到英文输入模式?新版本的问题是,当在插入模式中已经把 Rime 切换成英文输入模式(因为我要大段输入英文),但回到普通模式(做一些编辑)再次进入插入模式(继续输入)时,它会自动切换到中文输入模式。还有一个更无法忍受的是,插入模式下每按一次回车,它居然都会回到中文模式。我按照楼上的提示,用回 0.11 版就没问题了。
不知道在 Linux 下 fcitx 或 ibus 会不会有同样的问题。

@superhxl
Copy link

我也有这个问题,win10,0.13版本。其他地方用的挺开心的,每到vim中就不开心了!按shift切换后,随便退格立马就切换为中文了。

@lotem
Copy link
Member

lotem commented Jul 5, 2019

過去版本可能相關的討論: #232

@idnsunset
Copy link
Author

idnsunset commented Dec 8, 2020

過去版本可能相關的討論: #232

与这个 #232 并无关联。我安装了最新的 0.14.3 版本,问题依旧。

0.11 版本不存在这样的问题。另外,在 Linux 上使用 fcitx-rime 也不存在这样的问题。

@fxliang fxliang closed this as completed Aug 20, 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

7 participants