VSCodeVim / VSCodeVim/Vim

Mouse Selection in Visual Mode Switches to Insert Mode in VSCodeVim

Open
#9,491 0 comments 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

https://github.com/user-attachments/assets/88aa39d6-9257-4fdb-8cdf-632888eb49ad

Description:

I'm experiencing an issue with the VSCodeVim extension in Visual Studio Code. When I'm in Visual Mode and use the mouse to move the cursor to the end of a line, the mode unexpectedly switches to Insert Mode. This disrupts the workflow, as I intend to remain in Visual Mode during such operations.

Steps to Reproduce:

Activate Visual Mode in a text file.
Use the mouse to move the cursor to the end of a line.
Expected Behavior:

The editor should remain in Visual Mode after moving the cursor with the mouse.

Actual Behavior:

The editor switches to Insert Mode upon moving the cursor to the end of a line with the mouse.

Attempts to Resolve:

Checked Settings: Ensured that "vim.mouseSelectionGoesIntoVisualMode": true is set in settings.json.
Updated Extension: Verified that the VSCodeVim extension is up to date.
Used Keyboard Navigation: While keyboard navigation works as expected, mouse interactions cause the issue.
Reviewed GitHub Issues: Found similar reports, such as Issue #4972, but the problem persists.

Environment:
VSCODE:
Version: 1.97.2
Commit: e54c774e0add60467559eb0d1e229c6452cf8447
Date: 2025-02-12T23:20:35.343Z
Electron: 32.2.7
ElectronBuildId: 10982180
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Darwin x64 24.3.0

VIM PLUGIN:
Version: 1.29.0

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 in VS Code 1.97.2 with VSCodeVim 1.29.0, using a text file and setting vim.mouseSelectionGoesIntoVisualMode to true. Compare the behavior with issue #4972 and verify that moving the mouse to the end of a line while in Visual Mode leaves the editor in Visual Mode.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.