VSCodeVim / VSCodeVim/Vim

`<c-o>` and `<c-i>` malfunction sometimes

Open
#8,317 3 comments 3 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

Describe the bug
Sometimes when jumping around the definitions jumping back doesn't work properly. This error occured several times to me and I can reproduce it with .scss files.

To Reproduce
Steps to reproduce the behavior:

  1. Open .scss file
$variable: 4px;
.css {
  width: $variable;
}
  1. Go to line 3 width: $variable; and navigate to $variable; and then click go to definition <F12>
  2. You will jump to line 1 now click <c-o>
  3. You don't jump back to line 3 in which you were before the jump. Notice that normal go back shortcut ctrl + alt +- allows to jump back to line 3.

Expected behavior
<c-o> should allow to navigate back to line 3 and then <c-i> should allow user to go to line 1 again.

  • Extension (VsCodeVim) version: v1.25.2
  • VSCode version: 1.76.2

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 source file or test is identified in the issue. First reproduce the behavior with the provided SCSS example, comparing / against VS Code's normal go-back shortcut; done when navigation returns to line 3 and then back to line 1 reliably.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
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.