Vim Block Selection Rendering Improperly in Code Blocks

Steps to reproduce

  1. Ensure that you have vim mode active.
  2. Create a code block with multiple lines containing text.
  3. Place your cursor on the first row of the code block and press Ctrl+V.
  4. Hit l a few times. The selection will expand to the right.
  5. Hit j. The selection will appear to “move” to the line below while maintaining its shape, but it actually still has the selection on the line above.

Expected result

The block selection rendered properly.

Actual result

The selection only renders on the line that the cursor is currently on.


  • Operating system: iOS, macOS
  • Debug info:
	Obsidian version: v1.0.1
	Installer version: v1.0.0
	Operating system: Darwin Kernel Version 22.1.0: Sun Oct  9 20:14:30 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T8103 22.1.0
	Login status: logged in
	Catalyst license: vip
	Insider build toggle: off
	Live preview: off
	Legacy editor: off
	Base theme: dark
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on


Additional Information

A video (zipped) showing the issue.
Vim Block Selection in Code (1.3 MB)