Vim icon indicating copy to clipboard operation
Vim copied to clipboard

Chinese input in normal mode is being inserted directly.

Open ilovejcm opened this issue 6 months ago • 9 comments

Describe the bug I'm encountering an issue where, when using a Chinese input method, characters are being directly inserted into the text while in normal mode. Additionally, when I try to search for Chinese text using / (with focus in the bottom search box), the characters are also being inserted directly into the document. Since Chinese input methods also use quotes to separate phrases, I suspect this issue started after upgrading to version 1.101.1. I'm using macOS 15.5.

To Reproduce Steps to reproduce the behavior:

use Chinese input method to type anything when in normal mode

or

in normal mode,type / then use Chinese input method to try to search anything in Chinese

Environment (please complete the following information):

  • Extension (VsCodeVim) version: v1.30.1
  • VSCode version: v1.101.0
  • OS: macOS 15.5

ilovejcm avatar Jun 20 '25 03:06 ilovejcm

I also encounters this issue on windows. I'm pretty sure this issue is related to the version v1.101.0 of vscode. if I downgrade to vscode v1.100.0, the behaviour is normal.

aiyolo avatar Jun 20 '25 03:06 aiyolo

see https://github.com/microsoft/vscode/issues/251518#issuecomment-2973606446 for solution. just set editor.experimentalEditContextEnabled off, then the behaviour is normal.

aiyolo avatar Jun 20 '25 04:06 aiyolo

see microsoft/vscode#251518 (comment) for solution. just set editor.experimentalEditContextEnabled off, then the behaviour is normal.

thanks a lot. this works perfectly for me!

ilovejcm avatar Jun 20 '25 06:06 ilovejcm

This may also cause an issue where typing a Chinese period or comma results in double characters being inserted with a single keystroke. After setting "editor.experimentalEditContextEnabled": false as @aiyolo said, or disabling the Vim extension, the issue no longer occurs. :)

XBsleepy avatar Jun 20 '25 06:06 XBsleepy

Image

中文标点符号重复的问题,以及在从 Insert 模式切换回 Normal 模式后,使用中文输入法移动光标时出现覆盖原文的情况,都可以通过取消该设置来解决。

The repeated Chinese punctuation, as well as overwriting existing text when moving the cursor under a Chinese input method after switching from Insert mode to Normal mode, can both be resolved by disabling this setting.

furtherun avatar Jun 26 '25 06:06 furtherun

see microsoft/vscode#251518 (comment) for solution. just set editor.experimentalEditContextEnabled off, then the behaviour is normal.

great! it works, this problem has confused me for a long time.

KleeTaurus avatar Jun 26 '25 12:06 KleeTaurus

see microsoft/vscode#251518 (comment) for solution. just set editor.experimentalEditContextEnabled off, then the behaviour is normal.

Thank you very much! It's really troublesome until I find the solution here.

YixuanFu06 avatar Jul 04 '25 12:07 YixuanFu06

see microsoft/vscode#251518 (comment) for solution. just set editor.experimentalEditContextEnabled off, then the behaviour is normal.

thank you so much!!!!!!!!!❤️🌹😊🥰🥰🥰🥰🥰

bigmanBass666 avatar Aug 07 '25 18:08 bigmanBass666

太顶了,困扰我几个月了。。

albin3 avatar Sep 29 '25 08:09 albin3