Skip to content

Can't remap Normal mode j to gj or k to gk in notebooks #113

@Deeperand

Description

@Deeperand

Description

I tried to remap j to gj in normal mode, but it doesn't work. However, if I map M to gj, it will work. However, such map is valid for VISUAL mode.

Reproduce

Setting -> Notebook Vim -> Add with the following parameters

  • Keybinding: j
  • The key sequence to execute: gj
  • Mode: normal (the strange thing is in visual mode the map work)
  • Map function: normap (or map, both can't help this map work)

Then try to jump between a long-line-text, one can see j still jump to the next actual line, not the next visual line

Expected behavior

j should be mapped to gj, and therefore it will jump to next visual line

Context

  • Jupyter Lab version: 4.0.5
  • jupyterlab-vim version: 4.0.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions