Vim Visual Block Increment/Decrement Numbers with Ctrl-A/Ctrl-X

In vim, when in visual block mode (i.e., w/ Ctrl-V), you can usually increment/decrement a column of numbers with Ctrl-A/Ctrl-X. This doesn’t work in Obsidian, it only increments the last number selected, as it normally work in normal mode.

Steps to reproduce

  1. select visually a column of numbers with vim visual block mode (Ctrl-V)
  2. Increment/Decrement the values in the column with Ctrl-A/Ctrl-X

Did you follow the troubleshooting guide?

Yes, tried in sandbox mode.

Expected result

Increment all the numbers in the column

Actual result

increments the last highlighted

Environment

SYSTEM INFO:
Obsidian version: v1.4.16
Installer version: v1.4.16
Operating system: Darwin Kernel Version 22.6.0: Wed Jul 5 22:22:52 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T8103 22.6.0
Login status: not logged in
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: Blue Topaz v2023092901
Snippets enabled: 0
Restricted mode: off
Plugins installed: 8
Plugins enabled: 8
1: Vimrc Support v0.9.0
2: Advanced Tables v0.19.1
3: Obsidian Git v2.20.7
4: Calendar v1.5.10
5: Templater v1.16.0
6: Excalidraw v1.9.17
7: Day Planner v0.5.8
8: Latex Suite v1.7.4


1 Like
  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. As stated in the report, it does not work in sandbox mode.
  2. It does not work in source mode.
  3. It does not work in the two emulators provided either; However, the vim “reference manual” specifies this behavior: Vim: change.txt.

Any update on this?

I also need g Ctrl-A for creating a sequential number.

open a bug report upstream and explain them how to reproduce this bug in their sandbox

Thanks