VSCodeVim / VSCodeVim/Vim

Vim search jumps around when exiting search mode

Open
#8,003 1 comment 2 reactions 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

To Reproduce
Steps to reproduce the behavior:

  1. Use vim search to find something in a file, i.e. type /foo to search for foo (don't hit enter)
  2. Scroll and click in the UI to where you want to edit code
  3. 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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.