Skip to content
New issue

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

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

Already on GitHub? # to your account

j/k don't preserve column #8912

Closed
bowernite opened this issue Feb 29, 2024 · 4 comments
Closed

j/k don't preserve column #8912

bowernite opened this issue Feb 29, 2024 · 4 comments

Comments

@bowernite
Copy link

I know this has been posted in the past for gj/gk, but this also seems to be broken whenever moving the cursor up or down.

Basically, in this scenario:

abc
a
abc

If you have your cursor on c and move to the other abc line, the cursor ends up on a in the other line for any of the following:

  1. normal mode j/k
  2. insert mode up/down
  3. visual mode j/k

If I reload VS Code with extensions disabled and use up/down, this bug does not exist.

@bowernite
Copy link
Author

FWIW, this seems to be a bandaid fix:

  "vim.normalModeKeyBindingsNonRecursive": [
    {
      "before": ["j"],
      "commands": ["cursorDown"]
    },

@darianmorat
Copy link

This is caused for this option: "vim.foldfix": true, once disabled, is gonna work just fine.

@ontanj
Copy link
Contributor

ontanj commented Apr 10, 2024

duplicates #8840

@p-se
Copy link

p-se commented Jul 15, 2024

FWIW, this seems to be a bandaid fix:

  "vim.normalModeKeyBindingsNonRecursive": [
    {
      "before": ["j"],
      "commands": ["cursorDown"]
    },

Please note that this seems to work with "vim.foldfix": true!

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

No branches or pull requests

4 participants