Note: This is a bug in codemirror-vim. The fix is to upgrade to codemirror-vim version 6.2.1.
Steps to reproduce
- In VIM mode, write a line of text that wraps onto 3 lines
- With your cursor on the first character of the first line, type âgjâ (move down one visual line) twice. You should be at the first character of the third line.
- Type âgkâ
Expected result
Cursor should move to the first character of the next line up (line 2, following the steps above).
Actual result
Cursor skips a line, moving to line 1 using the steps above.
Environment
SYSTEM INFO:
Obsidian version: v1.6.7
Installer version: v1.5.3
Operating system: Windows 10 Home 10.0.19045
Login status: logged in
Catalyst license: none
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: Minimal v7.7.9
Snippets enabled: 0
Restricted mode: on
Additional information
This is the result of a bug in codemirror-vim
that was reported here: replit/codemirror-vim#165. It was fixed in this commit.