-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
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:
- Put cursor position on a function usage.
- Use the following key combo: "CTRL" + "]"
- It will bring you to the function definition
- If you click on "CTRL" + "]" vim is going to bring you back to that function usage.
- Now, try to switch from normal mode to insert mode.
- 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
After hitting the following key combo "CTRL" + "]":
After hitting the key combo again:

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:

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.