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

Conserve cursor X position when moving cursor up and down #4764

Closed
freiguy1 opened this issue Apr 22, 2020 · 3 comments
Closed

Conserve cursor X position when moving cursor up and down #4764

freiguy1 opened this issue Apr 22, 2020 · 3 comments
Labels

Comments

@freiguy1
Copy link

For example, I'm editing this text

A sort of long line^
Short
A really really really really really long line

Imagine the ^ is my cursor position. When I press j to navigate down one line, the cursor correctly goes to the Short line and is at the end of the text for that line. When I hit j again, The cursor drops straight below where it currently is. This behavior is incorrect. It should conserve the initial X position in the first line, so when navigating to the bottom line it should appear somewhere in the middle (of course I could figure out where exactly if I were to count characters, but I don't think that's necessary).

Could this be some configuration I have setup incorrectly?
Thanks!

@J-Fields
Copy link
Member

I assume you have j mapped to gj?

@freiguy1
Copy link
Author

Yessir.

@J-Fields
Copy link
Member

Duplicate of #4441

@J-Fields J-Fields marked this as a duplicate of #4441 Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants