Vim some keys not working in the vim mode

We strongly recommend you to search the forum with possible keywords before submitting a new bug report. Please also try your repro steps with third-party plugins and custom CSS disabled and see if it’s still reproducible. If it’s an issue with third-party plugins or themes, try contacting the author for help. Once you’ve done the above, delete this line.

Steps to reproduce

  1. Put a long line (no line breaks and longer to the width of screen so it is wrapping).

  2. try to use g0 and g$ commands of vim to go to the beginning and the end of the line (wrapped).

Expected result

Cursor goes to the beginning and the end of the line by these command respectively, these commands work in vim editor

Actual result

Nothing happens


  • Operating system: Win10, Using sandbox 0.14.5
  • Debug info:

Additional information

We don’t support it we also don’t support ^. Please open a FR.

1 Like

Did those motions work before, and stop in a recent update?

Otherwise, this might be more an issue to request at CodeMirror: Vim bindings demo

^ and $ do work at least.

they don’t work in the new editor.

0.14.6 (0.14.5 installer) MacOS, ^ and $ are still working for me.

Interesting, then ^ not working for me must be an issue with my layout.

0 , ^ and $ works for me too, but don’t work after g, like g$

1 Like

Yeah I understood that. Do you remember if those motions used to work in previous versions?

i am very new to vim, just recently started to learn and test it, so i don’t know

Concerning ^, here is the upstream BR: