VSCodeVim / VSCodeVim/Vim

Mouse switching to visual mode while in insert does not allow standard vim commands for insert visual.

Open
#8,474 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

Describe the bug
In vim in a terminal:
switch to insert mode. -> mode is -- INSERT --
Use mouse to select text. -> Mode switches to --(insert) VISUAL --
Press y to yank text -> mode switches to -- INSERT -- and text is unchanged, but now buffer is occupied.

In vscodevim:
switch to insert mode. -> mode is -- INSERT --
Use mouse to select text. -> Mode remains -- INSERT --
Press y to yank text -> text is replaced with a y.

To Reproduce
Steps to reproduce the behavior:
See above.

Expected behavior
vscodevim should behave like vim.
Note, Setting vim Mouse Selection Goes Into Visual Mode is checked.

  • Extension (VsCodeVim) version: v1.25.2
  • VSCode version: 1.75.1
  • OS: linux Pop OS

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

No file, test, or entry point is named. First reproduce the behavior in VSCodeVim with Mouse Selection Goes Into Visual Mode enabled, comparing insert-mode mouse selection and the y command with terminal Vim. Done means y operates on the selected text as expected without inserting a character or leaving the buffer occupied.

Written by the indexing model from the issue text.

Assessment

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