[GH-ISSUE #1273] Cursor not visible in Vim mode #492

Open
opened 2026-03-03 00:21:33 +03:00 by kerem · 3 comments
Owner

Originally created by @jason-pollock on GitHub (Oct 18, 2021).
Original GitHub issue: https://github.com/BoostIO/BoostNote-App/issues/1273

Current behavior

While in Vim mode, the cursor is invisible on empty lines. This is reproducible in every note. Reproducible in Mac, Debian, and online versions.

https://i.imgur.com/83F6ceb.png

Expected behavior

The cursor should be visible on empty lines, displayed in blinking block format.

Steps to reproduce

Open a new or existing note. Enter Insert mode and type a few lines. Exit to Command mode. Navigate to an empty line using "H" or "J". Notice that your cursor is invisible on empty lines.

Not much else to say. It happens to me every time on every note.

Environment

  • Web

  • Mac

  • Debian

  • Boost Note.next version: 0.22.0

  • OS version and name: Kubuntu 20.04, MacOS Big Sur 11.6

Originally created by @jason-pollock on GitHub (Oct 18, 2021). Original GitHub issue: https://github.com/BoostIO/BoostNote-App/issues/1273 # Current behavior While in Vim mode, the cursor is invisible on empty lines. This is reproducible in every note. Reproducible in Mac, Debian, and online versions. https://i.imgur.com/83F6ceb.png # Expected behavior The cursor should be visible on empty lines, displayed in blinking block format. # Steps to reproduce Open a new or existing note. Enter Insert mode and type a few lines. Exit to Command mode. Navigate to an empty line using "H" or "J". Notice that your cursor is invisible on empty lines. Not much else to say. It happens to me every time on every note. # Environment - Web - Mac - Debian - Boost Note.next version: 0.22.0 - OS version and name: Kubuntu 20.04, MacOS Big Sur 11.6
Author
Owner

@Komediruzecki commented on GitHub (Oct 18, 2021):

Hi,

I can confirm the issue, I'll notice the team so we can resolve this quickly.

<!-- gh-comment-id:946011999 --> @Komediruzecki commented on GitHub (Oct 18, 2021): Hi, I can confirm the issue, I'll notice the team so we can resolve this quickly.
Author
Owner

@Komediruzecki commented on GitHub (Oct 26, 2021):

Hello,

I investigated the issue, this seems to be a general Codemirror bug, https://github.com/codemirror/CodeMirror/issues/6312
which means if we are using VIM mode and contenteditable in Codemirror editor, the VIM cursor on an empty line won't be shown. So it is either moving to textarea mode (and losing IME working properly) or waiting for the Codemirror to fix this.

I made a comment on the issue, if this will be resolved quickly, we will just update the Codemirror version, otherwise, we should see for some other solutions.

<!-- gh-comment-id:952288858 --> @Komediruzecki commented on GitHub (Oct 26, 2021): Hello, I investigated the issue, this seems to be a general Codemirror bug, https://github.com/codemirror/CodeMirror/issues/6312 which means if we are using VIM mode and `contenteditable` in Codemirror editor, the VIM cursor on an empty line won't be shown. So it is either moving to `textarea` mode (and losing IME working properly) or waiting for the Codemirror to fix this. I made a comment on the issue, if this will be resolved quickly, we will just update the Codemirror version, otherwise, we should see for some other solutions.
Author
Owner

@jason-pollock commented on GitHub (Jan 23, 2023):

Looks like Codemirror has fixed the bug causing this issue, yet the issue persists in Boost Note. Any chance of revisiting this issue? Get Vim mode working again?

<!-- gh-comment-id:1400656534 --> @jason-pollock commented on GitHub (Jan 23, 2023): Looks like Codemirror has fixed the bug causing this issue, yet the issue persists in Boost Note. Any chance of revisiting this issue? Get Vim mode working again?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/BoostNote-App#492
No description provided.