VSCodeVim / VSCodeVim/Vim

Movement (`hjkl`) or arrow keys not working correctly in multi cursor mode

Open
#4,404 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the bug

Movement keys (hjkl) will cancel multi-cursor and select jump unexpected.

To Reproduce

Mac 10.14.6

  1. Cmd + d to Enter multi cursor visual mode
  2. press h to move

Expected behavior

Movement for multi-cursor should remain in multi-cursor mode.

Screenshots

Environment (please complete the following information):

  • Issue Type: Bug
  • Extension Name: vim
  • Extension Version: 1.12.2
  • OS Version: Darwin x64 18.7.0
  • VSCode version: 1.41.0

⚠️ We have written the needed data into your clipboard. Please paste! ⚠️

{
	"messages": [],
	"activationTimes": {
		"codeLoadingTime": 627,
		"activateCallTime": 4,
		"activateResolvedTime": 282,
		"activationReason": {
			"startup": true,
			"extensionId": {
				"value": "vscodevim.vim",
				"_lower": "vscodevim.vim"
			},
			"activationEvent": "*"
		}
	},
	"runtimeErrors": []
}

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 Mac multi-cursor visual-mode case with Cmd+D followed by h, then trace the VSCodeVim handling for movement keys and arrow keys. Add a regression test for remaining in multi-cursor mode and confirm the expected behavior for the reported reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
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.