VSCodeVim / VSCodeVim/Vim

AutoSwitchInputMethod lead c and s can't change from normalMode to insertMode

Open
#7,464 1 comment 1 reaction 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
Such case happen after version 1.25, when setting "vim.autoSwitchInputMethod.enable": true, operation c and s(ea: cc, s), mode can't change normalMode to insetMode(actually in insertmode, but statusbar and cursor can't change).

To Reproduce
Steps to reproduce the behavior:

  1. Only install vim extension and default settings for clean vscode environment
  2. Setting "vim.autoSwitchInputMethod.enable": true
  3. Start edit, the first time, cc delete one line, statusbar and cursor cant change style from normalMode to insertMode, but next time cc and later cc, delete one line, statusbar and cursor can't change style from normalMode to insertMode.

Expected behavior
After operation c and s (s, cc, ciw..), statusbar indicate from normalMode to interMode, cursor style from block to line.

Screenshots
vimbug

Environment (please complete the following information):

  1. Only install vim extension and default vscode settings
  2. "vim.autoSwitchInputMethod.enable": true
  • Extension (VsCodeVim) version: 1.22.1
  • VSCode version: 1.64.0
  • OS: windows11

Additional context
Add any other context about the problem here.

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

Start by reproducing the behavior with the VSCodeVim extension and the "vim.autoSwitchInputMethod.enable" setting, using c and s operations such as cc and ciw. Trace how these operations update the mode indicator and cursor style; done means they consistently change from normal mode to insert mode after the operation.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.