Vim Recordings are Not Working Correctly

Recorded vim macros do not execute correctly. In normal mode, I press:

q1ddq

The message says recording macro q[1], the line is deleted, and the recording ends. In normal mode, I press

@1

The first character of the line is deleted. When I press it again, the second character is deleted and the cursor moves to the third character of the line. When I press it a third time, the last character of the line is deleted.

I now noticed, recording the same macro again produces different, unpredictable behavior such as moving the cursor to the end of the line and nothing else.

SYSTEM INFO:
Obsidian version: v1.6.7
Installer version: v1.6.7
Operating system: Windows 11 Education 10.0.22631
Login status: not logged in
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: Minimal v7.7.18
Snippets enabled: 1
Restricted mode: off
Plugins installed: 9
Plugins enabled: 5
1: Latex Suite v1.9.5
2: Advanced Tables v0.22.0
3: Dataview v0.5.67
4: Mermaid Tools v1.1.3
5: Tasks v7.10.2

RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

I am also able to reproduce this issue in a sandbox vault.

I tried it out on CodeMirror: Vim bindings demo which is the vim bindings that Obsidian uses and had the same issue. You might want to open an issue on their repository GitHub - replit/codemirror-vim: Vim keybindings for CM6

1 Like