Vim: <c-o>/<c-t> jump back to wrong location after 'gd'

Created on 8 Jan 2020  路  5Comments  路  Source: VSCodeVim/Vim

Describe the bug
Pressing after 'gd' goes to a different file and not back to the previous location.

Re-reporting #3277 since this bug has not been re-introduced (I'm guessing after the 1s sleep was removed)

To Reproduce
Press 'gd'
Press
Now in wrong location

Expected behavior
Going to the previous location

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.12.4
  • VSCode version: 1.41.1
  • OS: macOS 10.14.6

Additional context
Add any other context about the problem here.

Most helpful comment

This issue seems exacerbated when you open more than one file, especially if you have more than one file open in window splits (:vsp for example.) I find that the ctrl-t, ctrl-o works decently with just one window/tab open, but obviously that is a severely limiting restriction. Hopefully, that gives a hint as to what might be going wrong.

Just to add my two-cents: bugs like this make VSCodeVim pretty unusable to the point I just want to turn it off, and/or just stick to vim or qtcreator (which has a half decent FakeVim implementation.) As such, I'd place this at "priority level: do or die", that is I see the future of this plugin decided by the presence (or lack of) a robust resolution to this bug.

All 5 comments

Duplicate of #4470. I'm pretty sure you're right that this broke after I removed the timeout. Maybe we can get around that, or maybe I need to add it back in a more limited context.

Workaround: #3277 (comment)

@troygibb does this work for you as intended? In my case, it seems that Vim extension hijacks VSCode's Go back stack, so if I do gd and then jjjjjjj, Go back brings me to the previous line instead of the file I jump from.

As for C-o it seems broken on all 1.12.x - I got reasonable behaviour only with 1.11.3.

May I ask are there any fixes or updates?

This issue seems exacerbated when you open more than one file, especially if you have more than one file open in window splits (:vsp for example.) I find that the ctrl-t, ctrl-o works decently with just one window/tab open, but obviously that is a severely limiting restriction. Hopefully, that gives a hint as to what might be going wrong.

Just to add my two-cents: bugs like this make VSCodeVim pretty unusable to the point I just want to turn it off, and/or just stick to vim or qtcreator (which has a half decent FakeVim implementation.) As such, I'd place this at "priority level: do or die", that is I see the future of this plugin decided by the presence (or lack of) a robust resolution to this bug.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gerardmrk picture gerardmrk  路  3Comments

rajinder-yadav picture rajinder-yadav  路  3Comments

typeoneerror picture typeoneerror  路  3Comments

jaredly picture jaredly  路  3Comments

elithrar picture elithrar  路  3Comments