You have to double hit the key to get the chinese punctuation corretly in vim/neovim in this terminal! #6329

Closed
opened 2026-01-31 00:35:51 +00:00 by claunia · 2 comments
Owner

Originally created by @zyy1998 on GitHub (Feb 7, 2020).

Environment

Windows build number: Microsoft Windows NT 10.0.18362.0
Windows Terminal version: v0.8.10261.0 and 2019/6/21 published on MS-Store
NeoVim version: 0.4.3
Input method editor: Microsoft Pinyin

Steps to reproduce

  1. Install vim/neovim
  2. Open powershell in the terminal and type nvim test.md
  3. Switch to Chinese input method editor
  4. Feel free to type some Chinese punctuation like ,。?!() and you'll get what I say

Expected behavior

If I just write in English in the terminal, it performs pretty well. And I have tested it in cmder and nvim-qt.exe, have no problem.
20200207184039
( BTW, nvim-qt is not a terminal actually )

20200207185123

Actual behavior

In windows terminal, whatever I use nvim in powershell or vim in WSL bash, I have to hit the key twice in order to input the Chinese punctuation. So I pretty sure it's a bug of windows terminal.

More interested, you need not have to hit the same key twice, just hit whatever first and then hit what you want to input, it seems that the first key has been eaten by terminal.

Most interested is: I clicked some emoji in MS pinyin with the mouse, but it did not appear here immediately., when I typed some Chinese ( NOT ENGLISH ), all the emojis swarm into my terminal.

20200207193010

Originally created by @zyy1998 on GitHub (Feb 7, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: Microsoft Windows NT 10.0.18362.0 Windows Terminal version: v0.8.10261.0 and 2019/6/21 published on MS-Store NeoVim version: 0.4.3 Input method editor: Microsoft Pinyin ``` # Steps to reproduce 1. Install vim/neovim 2. Open powershell in the terminal and type `nvim test.md` 3. Switch to Chinese input method editor 4. Feel free to type some Chinese punctuation like `,。?!()` and you'll get what I say # Expected behavior If I just write in English in the terminal, it performs pretty well. And I have tested it in cmder and nvim-qt.exe, have no problem. ![20200207184039](https://user-images.githubusercontent.com/23515803/74022936-81a49800-49d9-11ea-9e77-70b370bdbac0.png) _( BTW, nvim-qt is not a terminal actually )_ ![20200207185123](https://user-images.githubusercontent.com/23515803/74023546-e3b1cd00-49da-11ea-9eb6-73842ea99a19.png) # Actual behavior In windows terminal, whatever I use nvim in powershell or vim in WSL bash, I have to hit the key twice in order to input the Chinese punctuation. So I pretty sure it's a bug of windows terminal. More interested, you need not have to hit the same key twice, just hit whatever first and then hit what you want to input, it seems that the first key has been eaten by terminal. Most interested is: I clicked some emoji in MS pinyin with the mouse, but it did not appear here immediately., when I typed some Chinese ( **NOT ENGLISH** ), all the emojis swarm into my terminal. ![20200207193010](https://user-images.githubusercontent.com/23515803/74026261-c4b63980-49e0-11ea-8f72-d782b4fb9251.png)
claunia added the Resolution-Duplicate label 2026-01-31 00:35:51 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (Feb 7, 2020):

Thanks for the report! This sounds like a /dupe of #3745

@DHowett-MSFT commented on GitHub (Feb 7, 2020): Thanks for the report! This sounds like a /dupe of #3745
Author
Owner

@ghost commented on GitHub (Feb 7, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Feb 7, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6329