Vim search jumps around when exiting search mode
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
To Reproduce
Steps to reproduce the behavior:
- Use vim search to find something in a file, i.e. type
/footo search for foo (don't hit enter) - Scroll and click in the UI to where you want to edit code
- Hit ESC to enter vim's regular mode
Expected behavior
The cursor remains where the user clicked in step 2.
Actual behavior
The cursor and screen jump back to where the user was before they started the search.
Environment (please complete the following information):
- Extension (VsCodeVim) version: 1.24.1
- VSCode version: 1.71.2
- OS: Mac OS X 12.6
Additional context
Possibly related issue: https://github.com/VSCodeVim/Vim/issues/5129
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
Reproduce the issue with VSCodeVim 1.24.1 on VS Code 1.71.2 using the listed search, scroll, click, and ESC steps. Then trace the Vim search-mode exit handling and compare it with related issue #5129; done means the cursor and screen remain at the clicked location after leaving search mode.
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
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100