Behavior of the Space Key in inkdrop-vim's Normal Mode

Hi Takuya,

I’m always grateful to be using Inkdrop.

I have a question regarding the subject matter. In normal mode, when I hold down the space key to move the cursor to the right, it stops at the end of the line. Is this intended behavior?

Environment

  • Platform version: macOS Ventura 13.5 (22G74)
  • Inkdrop version: 5.5.3 (5.5.3)
  • inkdrop-vim: 2.2.2
    Thank you in advance for your guidance.

Best regards,

Inkdrop

Inkdrop

Vim

Vim

VScode(Visual Studio Code)

VScode

Hi Tsukamoto,

Thanks for letting me know.
Inkdrop uses CodeMirror’s vim keybindings. It appears that the space key does not behave as you’d expect:

https://codemirror.net/5/demo/vim.html

Internally, Space is bound to vim:move-right, which is equivalent to l key.
Maybe you can try remapping it to editor:go-char-right instead like so:

".CodeMirror.vim-mode:not(.insert-mode):not(.key-buffering) textarea":
  "space": "editor:go-char-right"
1 Like

Hi Takuya,

Thank you so much for your kind response.

I’ve corrected the keybinding setting, and it has been resolved successfully.
I appreciate your help.

1 Like