Mouse switching to visual mode while in insert does not allow standard vim commands for insert visual.
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
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
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