VSCodeVim / Vim

:star: Vim for Visual Studio Code
http://aka.ms/vscodevim
MIT License
13.84k stars 1.31k forks source link

Cannot type Vietnamese character in VSCodeVim #3779

Open jiroakio opened 5 years ago

jiroakio commented 5 years ago

Describe the bug To type Vietnamese text, we use an application call Unikey (Link download: https://unikey.vn/download/201807/UniKey-4.2RC4-140823-Setup_x32.exe). However, when enabling VSCodeVim, we cannot type Vietnamese text properly.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://unikey.vn/vietnam/' or download directly Unikey with \https://unikey.vn/download/201807/UniKey-4.2RC4-140823-Setup_x32.exe
  2. Install Unikey, configure: Character Set: Unicode, Input method: Telex
  3. Go to VS Code and start typeing "Tooi yeeu Vieetj Nam"
  4. The proper result should be "Tôi yêu Việt Nam", but mostly the extension provides incorrect text

Expected behavior Typing these characters "Tooi yeeu Vieetj Nam", the proper text should be "Tôi yêu Việt Nam"

Screenshots vscode-vim-vietnamese-issue

Environment (please complete the following information):

kienvu58 commented 4 years ago

@jiroakio I found a workaround to type Vietnamese text with VSCodeVim. You can use EVKey (https://evkey.org/#download) instead of Unikey.

jiroakio commented 4 years ago

Hi Kiên,

I have been using EVKey but there are still a lot of errors when typing. Only with the native Vietnamese keyboard of windows that there is no typing error.

Thank you for sharing ❤️

On Sun, Mar 15, 2020, 14:39 Kien Vu notifications@github.com wrote:

@jiroakio https://github.com/jiroakio I found a workaround to type Vietnamese text with VSCodeVim. You can use EVKey ( https://evkey.org/#download) instead of Unikey.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/VSCodeVim/Vim/issues/3779#issuecomment-599178243, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJPLCGTZJ2XOAKIZRRTJ2A3RHSAZPANCNFSM4HNSUTOQ .

ledinhbao commented 4 years ago

Just add more case: I'm using macOS and meet same issue, cannot type any Vietnamese character. macOS 10.15 OpenKey 2.0.3 VSCode 1.43.0 VsCodeVim 1.13

manhthang2504 commented 4 years ago

I have same problem. Other Vim style plugin works fine, only this VsCodeVim has problem with Unicode Character

pc223 commented 3 years ago

I have the same problem, this is the only reason I can't switch to this extension yet 😅 (VScode 1.51.1, VSCodeVim 1.17.1)

Elaborate more on the problem:

So might be something related to how extension.vim_backspace works. Maybe the vim extension sends wrong order of <backspace>, for example, too -> too<backspace>ô<backspace> -> to -> bad!

I did try to force vscode to handle <backspace> to see what happens but no success. Not to sure why 🤔

    // Not working
    "vim.handleKeys": {
         "backspace": false,
    }

Workaround: Maybe try vscode neovim extension

tbm98 commented 3 years ago

It seems to work fine at the latest EVKey 3.3.8 and vscodevim 1.21.5

no-vici commented 1 year ago

Have anyone try OpenKey yet? It works beautifully for me on Mac, I have not tried it on Windows but heard many positive feedbacks from other users.

sam-val commented 1 year ago

We still have this issue in September 2023 :(

nmhhao1996 commented 1 year ago

I have had the same issue recently with v1.26.0. I tried to downgrade to v1.25.2 and it works fine again now.

mibi2007 commented 1 year ago

I have had the same issue recently with v1.26.0. I tried to downgrade to v1.25.2 and it works fine again now.

The downgrade is working for me, thanks