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

goto end of file if count is not present #8135

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gim913
Copy link

@gim913 gim913 commented Sep 1, 2023

Hello,

I'm not quite sure if this change is something wanted, but coming from vim, I'm terribly missing this.

G is bound to goto_line. The change allows goto_line without count, therefore G without count results in going to the end of file.

The only thing I wasn't sure about is if there should be push_jump or not, but it seems more natural to always add current location to jumplist.

From vim docs:

With a count, this command positions you at the given line number. For example, "33G" puts you on line 33. (...)
With no argument, G positions you at the end of the file.

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

Successfully merging this pull request may close these issues.

None yet

1 participant