A bug between `vim.autoSwitchInputMethod.enable` and `.` in vim
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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