Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for ' ' (Jump to previous cursor position) #2031

Closed
Zundrium opened this issue Sep 20, 2017 · 12 comments
Closed

Support for ' ' (Jump to previous cursor position) #2031

Zundrium opened this issue Sep 20, 2017 · 12 comments

Comments

@Zundrium
Copy link

Zundrium commented Sep 20, 2017

  • Click thumbs-up 👍 on this issue if you want it!
  • Click confused 😕 on this issue if not having it makes VSCodeVim unusable.

The VSCodeVim team prioritizes issues based on reaction count.


In NeoVim or classic Vim I can jump back to my previous cursor position using ' '. Which is usefull when I used Go to Definition (g d) and want to jump back.

Is it possible to implement this feature?

@westim
Copy link
Contributor

westim commented Sep 20, 2017

This is a duplicate of #1089. This feature has been implemented and released in version 0.10.1.

@cbosco
Copy link

cbosco commented Sep 22, 2017

@westim Is this enabled by default? I'm on 0.10.1 of the plugin and just updated VSCode on Mac, but not seeing this shortcut work in normal mode.

Sorry for beginner question but is there something to reconfigure? I've tried reinstalling the plugin after restarting VSCode (after update).

@westim
Copy link
Contributor

westim commented Sep 22, 2017

@cbosco No worries, all questions allowed.

I'm also not showing the correct behavior on my Mac on latest versions, and it seems that the extension owners are also not seeing the correct behavior. See the comments on PR #1993 from 2 days ago. It seems that we are waiting on an API command to be fully implemented in VSCode before this will work. You could pull a dev build of VSCode, but I recommend you simply wait until the next official release.

@xconverge
Copy link
Member

Leaving this open until we get the new release

@brandonbloom
Copy link
Contributor

brandonbloom commented Oct 14, 2017

The "Go Last" command is now available in VS Code vim, but my changes from #1993 seem to no longer work quite right due to some issue with .selection looked up on an undefined object. I'll see if I can fix it.

@jpoon
Copy link
Member

jpoon commented Nov 6, 2017

@brandonbloom any updates to your investigation?

@brandonbloom
Copy link
Contributor

brandonbloom commented Nov 6, 2017 via email

@insidewhy
Copy link
Contributor

With the latest vscode and vscodevim I see this is kind of working but in a very buggy way... I often get taken back to the second or third most recent jump instead of the most recent jump, sometimes I end up on the line before or two lines before also.

@brandonbloom
Copy link
Contributor

@ohjames I've experienced that a bit too, but it's going to vary a fair bit based on what operations you're doing. The VSCodeVim code has to specify when to make navigation stops and is probably pretty buggy there, but maybe easy to fix specific cases bothering you.

@Chillee
Copy link
Member

Chillee commented Sep 13, 2018

I believe this issue has also been fixed. Please comment if it hasn't.

@Chillee Chillee closed this as completed Sep 13, 2018
@insidewhy
Copy link
Contributor

@Chillee definitely hasn't been fixed, no better than it was last year.

@danagain
Copy link

danagain commented May 2, 2024

This still doesn't work for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants