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

Remapped actual line to visual line bug #20

Open
dustin4d opened this issue Jan 25, 2024 · 1 comment
Open

Remapped actual line to visual line bug #20

dustin4d opened this issue Jan 25, 2024 · 1 comment

Comments

@dustin4d
Copy link

When using imap k gk, iterating over a multi-line (visual line) in the upward direction (k) jumps over an additional line. It will always skip the line you intend to go up to (one visual line). This issue does not occur with imap j gj. Going downwards works as intended.

Example:

1 ## Redirecting Output to other commands
2 There is an operator built-in to shell environments that allows you to send the output of any
  given command to another command on the same line. This is the **pipe** operator, which is `|`.
3 It's the key above Enter, not a capital `I` or lowercase `l`.

If I position my cursor on the word "given" on the second visual line of line 2, and press k, it will jump to line 1, and not the beginning of line 2.

@diogobcarneiro
Copy link

@dustin4d Same here. I saw that only happens if you are positioned at the beggining of the visual line.
I got used to press l(move 1 to right) before k. It works fine.

Did you find another solution?

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

No branches or pull requests

2 participants