Skip to content

[CURSOR] Go to function definition using "CTRL" + "]" #9565

@0xCodeMaieutics

Description

@0xCodeMaieutics

Describe the bug
Vim plugin in cursor behaves weirdly when you try to go to the function definition and go back to the function usage.

It's almost storing the old state of "going to the function definition" and when you try to click on any other keyboard after "CTRL" + "]", vim is throwing you to the same function definition.

To Reproduce
Steps to reproduce the behavior:

  1. Put cursor position on a function usage.
  2. Use the following key combo: "CTRL" + "]"
  3. It will bring you to the function definition
  4. If you click on "CTRL" + "]" vim is going to bring you back to that function usage.
  5. Now, try to switch from normal mode to insert mode.
  6. Vim is going to bring you back to the function definition even though that was not your intention.

Expected behavior
Vim shouldn't be forcing you to go to the function definition after you went there on your own using "CTRL" + "]" and now you just want to switch to insert mode.

Screenshots

Cursor starting position:
Image

After hitting the following key combo "CTRL" + "]":
Image

After hitting the key combo again:

Image

And now press "i" for switching to insert mode and vim is forcing you to go to the function def. again and put you in insert mode there:

Image

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.29.0
  • VSCode version: 0.48.7
  • OS: MacOS, 14.6.1

Additional context

In VSCode Vim plugin works perfectly as expected but something weird is going on in Cursor IDE I can't figure out how to find a work around this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions