Vim Normal mode issue in RTL: arrow keys misbehave
After one of the recent Obsidian updates (around 0.10.6), seems like Obsidian is catching left/right cursor movements and bypassing the rtlMoveVisually setting of CodeMirror, causing the cursor to move to the wrong side.
Before patching this by catching these DOM events and overriding them for RTL mode, I posted in the Obsidian forum hoping to get the core issue fixed: https://forum.obsidian.md/t/obsidian-is-catching-left-right-and-j-k-cursor-movements-causing-cm-rtlmovevisually-to-break/11650
So after further investigation, this is a specific issue with the CodeMirror Vim keymap when in RTL. I opened a CodeMirror bug here: https://github.com/codemirror/CodeMirror/issues/6574 There is no reasonable patch I can make in the plugin to fix this :(