Yank Command `:<n>,<m>y` Not Working in Vim Mode

Steps to reproduce

  1. Create a document with multiple lines
  2. Try to copy the first three lines using :1,3y
  3. Try to paste using p

Expected result

The first three lines gets pasted after the cursor

Actual result

The line the cursor had been at when :1,3y was used, was yanked and pasted instead

For example, line 4 will be pasted if the cursor was at line 4 when the command was typed


Obsidian version: v1.4.16
Installer version: v1.4.16
Operating system: #202310061235~1697396945~22.04~9283e32 SMP PREEMPT_DYNAMIC Sun O 6.5.6-76060506-generic
Login status: not logged in
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: on


  1. Does it happen in the sandbox vault?
  2. Does it happen in source mode?
  3. Does it happen here https://codemirror.net/5/demo/vim.html ?
  4. Does it happen here https://codemirror-vim--util.repl.co/ ?
  1. I leave that to @Kujek.
  2. Yes.
  3. Yes.
  4. Yes.

It does work in Vim and Neovim though. :wink:

Search/open an issue here and explain how to reproduce the issue in their sandbox