Vim Mode: "<Shift><O>" Inserts Extra Space Before Nested List Item

It’s a little thing, I know, but when using Vim Mode to manage outlines (nested lists), <O> and <Shift><O> end up messing up the layout ever-so-slightly…

Steps to reproduce

In Sandbox Vault:

  1. Enable Vim Mode in the Preferences
  2. 'I’nsert a Nested List:
<i>      # (For 'I'nsert Mode)
<Hyphen><Space>One<Enter>
<Tab>Two<Enter>
Three<Escape>

Resulting in: (So far so good)

- One
    - Two
    - Three
  1. Now, with the cursor on line “Three”, hit <Shift><O> to Open a new line (Here’s where you can see it also adds a space before the cursor), then <Tab><Hyphen><Space>XXX<Escape>

Note: I see the same behavior if I hit <O> (without the shift) on line “Two”…

Expected result

I’d expect:

- One
    - Two
    - XXX     <-- Aligned with "Two" and "Three"
    - Three

Actual result

Instead I get:

- One
    - Two
     - XXX    <-- Notice the extra <Space>
    - Three

Environment

SYSTEM INFO:
	Obsidian version: v1.2.7
	Installer version: v0.15.9
	Operating system: Darwin Kernel Version 22.4.0: Mon Mar  6 21:00:17 PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 22.4.0
	Login status: not logged in
	Insider build toggle: off
	Live preview: on
	Legacy editor: off
	Base theme: dark
	Community theme: none
	Snippets enabled: 2
	Restricted mode: off
	Plugins installed: 0
	Plugins enabled: 0

Additional information

FWIW, I’ve noticed that the deeper the nesting, the greater the number of spaces — i.e., one sub-level deep → one space; two sub-levels → two spaces, etc.

Thanks! :smiley:

I am not sure if you searched before posting, but here: