Steps to reproduce
Activate vim. Paste in the following snippet:
first. works ok
second. works ok <!-- comment -->
third. works ok
<!-- comment -->
fourth. `o` doesn't work, but `O` does <!--
comment -->
<!-- comment
--> fifth. `O` doesn't work, but `o` does
<!-- comment
--> sixth. neither `o` nor `O` work <!--
comment -->
Enter vim’s normal mode. For each line, try to use o
and O
.
Did you follow the troubleshooting guide? [Y/N] Y
Expected result
When pressing o
, a new line should be created below the current line, the cursor should jump to the start of that line, and vim should enter insert mode.
Also, when pressing O
, a new line should be created above the current line, the cursor should jump to the start of that line, and vim should enter insert mode.
Actual result
When pressing o
on a line which ends partway through a multi-line HTML comment, the cursor jumps to the end of the current line without inserting a new line, and vim doesn’t enter insert mode.
When pressing O
on a line which begins partway through a multi-line HTML comment, the cursor jumps to the end of the previous line without creating a new line, and vim doesn’t enter insert mode.
Environment
SYSTEM INFO:
Obsidian version: v1.3.5
Installer version: v1.3.5
Operating system: Windows 10 Home 10.0.19045
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
RECOMMENDATIONS:
none