Vim command-mode cursor disappears in code blocks when open in new window

Steps to reproduce

  1. Enable vim key bindings.
  2. Open a note editor in a new window separate from the main window.
  3. While in vim command mode move the cursor inside a code block.

Expected result

The cursor should be visible within the code block.

Actual result

The cursor disappears until it is moved out of the code block or the user switches to vim input mode. Note that while the cursor is hidden vim commands still work as expected if one can accurately predict where the hidden cursor is.


  • Operating system: Mac OS 12.6.3
  • Debug info:

    Obsidian version: v1.1.9
    Installer version: v1.0.3
    Operating system: Darwin Kernel Version 21.6.0: Mon Dec 19 20:44:01 PST 2022; root:xnu-8020.240.18~2/RELEASE_X86_64 21.6.0
    Login status: logged in
    Catalyst license: none
    Insider build toggle: off
    Live preview: on
    Legacy editor: off
    Base theme: adapt to system
    Community theme: none
    Snippets enabled: 0
    Restricted mode: on

Additional information

download and reinstall obsidian. Post a screen recording of this happening in the sandbox vault.

Screen Recording 2023-02-17 at 8.52.06 AM

Apparently the first gif I uploaded wouldn’t animate in Firefox because it was too large. :person_shrugging: This one shouldn’t have that problem.

Screen Recording 2023-02-17 at 8.52.06 AM 5fps

Likely related to: