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

Marks: go to the position before the last jump #1089

Closed
AWaselnuk opened this issue Nov 24, 2016 · 7 comments
Closed

Marks: go to the position before the last jump #1089

AWaselnuk opened this issue Nov 24, 2016 · 7 comments

Comments

@AWaselnuk
Copy link

AWaselnuk commented Nov 24, 2016

Please thumbs-up 👍 this issue if it personally affects you! You can do this by clicking on the emoji-face on the top right of this post. Issues with more thumbs-up will be prioritized.


I'm opening this issue as per your instructions on the roadmap. Hoping to bump this feature up a bit.

It might be because I'm a Vim newb who hasn't unlocked the full potential of marks, but I find myself constantly pressing ' ' and nothing happens.

@bijoutrouvaille
Copy link

It would be lovely to have also support for the double-tick variant ``, on which many, like myself, are dependent. Double apostrophe jumps back to the beginning of line. The double-tick jumps back to the same place in line.

@Chillee
Copy link
Member

Chillee commented May 1, 2017

@bijoutrouvaille Is there any difference between and ``?

@bijoutrouvaille
Copy link

Yes, to augment my failed attempt at explaining it above, the general difference is that the backtick remembers the column number of the marked line, while with the apostrophe the "cursor is positioned on the first non-blank character in the line," i.e. the beginning of line. Both are useful.
:help mark-motions

@Chillee
Copy link
Member

Chillee commented May 1, 2017

Oh shit Github formatting messed up my comment. I meant to say

@bijoutrouvaille Is there any difference between <C-o> and ``?

@bijoutrouvaille
Copy link

Yep. C-O is a "back" command that moves back one item on the jumplist. The double tick simply alternates between last two positions.

@halindrome
Copy link

FWIW I was unaware of C-O... and I have been using vi(m) since 1985!

brandonbloom added a commit to brandonbloom/vscode-vim that referenced this issue Sep 2, 2017
@brandonbloom
Copy link
Contributor

I've written patches to address this issue. If you're willing and able. Please test/vote/whatever. Thank you.

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

6 participants