VSCodeVim / VSCodeVim/Vim

A bug between `vim.autoSwitchInputMethod.enable` and `.` in vim

Open
#7,139 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Describe the bug
enabling

"vim.autoSwitchInputMethod.enable": true

and use . in vim will cause serious bug containing cursor shape problem and vim work unexpectedly

To Reproduce
first enter insert mode, switch to another non-default input method (different from vim.autoSwitchInputMethod.defaultIM) and type

happy
happy

press esc and input ciwsad<esc>j., you will get

sad
hasadppy

which is adnormal, besides, when you enter w, you get wrong cursor shape

Expected behavior

  • when you enter w, you get right cursor shape
  • the results should be
sad
sad

Environment:

  • Extension (VsCodeVim) version:1.21.8
  • VSCode version:1.60.2 7f6ab5485bbc008386c4386d08766667e155244e x64
  • OS:Windows

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with vim.autoSwitchInputMethod.enable enabled, a non-default input method, and the reported ciwsadj. sequence. Investigate the TypeScript handling of input-method switching, dot repetition, and cursor shape. Done means the sequence produces sad on both lines and w shows the correct cursor shape.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vim, vscode
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.