# Block cursor is too small for VIM input mode

**URL:** <https://forum.obsidian.md/t/block-cursor-is-too-small-for-vim-input-mode/5763>\
**Category:** Bug graveyard\
**Tags:** vim, upstream-bug, ui-ux\
**Created:** [September 16, 2020, 7:12am UTC](https://forum.obsidian.md/t/block-cursor-is-too-small-for-vim-input-mode/5763 "2020-09-16T07:12:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mori](https://forum.obsidian.md/user_avatar/forum.obsidian.md/mori/32/1271_2.png) [@mori](https://forum.obsidian.md/u/mori)\
**Post date:** [September 16, 2020, 7:12am UTC](https://forum.obsidian.md/t/block-cursor-is-too-small-for-vim-input-mode/5763/1 "2020-09-16T07:12:20Z")

</div>

Obsidian version: 0.8.14

Here you can see the cursor on the “N” letter:  
 ![image](https://forum.obsidian.md/uploads/default/original/2X/d/d057417ab8a8acd874c2c14495c1d7e625d56a7c.png)  
It’s even worse in headers:  
 ![image](https://forum.obsidian.md/uploads/default/original/2X/8/895d4c355ea2651b91b896faf5c07811cf443413.png)

Surprisingly it works well when in visual selection mode:  
 ![image](https://forum.obsidian.md/uploads/default/original/2X/5/5ea579f22b02749609addcecd4d88fec37231c5a.png)

This bug sometimes makes it hard to understand which letter I’m actually at:  
 ![image](https://forum.obsidian.md/uploads/default/original/2X/7/74c2378648384b430a4952dbc7c70d4395b180ae.png)

---

<div class="post-metadata">

**Author:** ![argentum](https://forum.obsidian.md/user_avatar/forum.obsidian.md/argentum/32/7733_2.png) [@argentum](https://forum.obsidian.md/u/argentum)\
**Post date:** [September 20, 2020, 10:48am UTC](https://forum.obsidian.md/t/block-cursor-is-too-small-for-vim-input-mode/5763/2 "2020-09-20T10:48:57Z")

</div>

Hi @mori! Unfortunately this is a know issue that needs a fix from CodeMirror (see [Vim cursor doesn't match character width](https://forum.obsidian.md/t/vim-cursor-doesnt-match-character-width/680/2)). A temporary workaround while we wait for the upstream fix is to handle this through CSS: You’d need to use a Monospace font and adjust the cursor width. This might not play well if you have different font sizes with your headers though.

---

<div class="post-metadata">

**Author:** ![mori](https://forum.obsidian.md/user_avatar/forum.obsidian.md/mori/32/1271_2.png) [@mori](https://forum.obsidian.md/u/mori)\
**Post date:** [September 21, 2020, 5:38am UTC](https://forum.obsidian.md/t/block-cursor-is-too-small-for-vim-input-mode/5763/3 "2020-09-21T05:38:21Z")

</div>

Well, I’ll give the mono font a spin, but I’m not sure what bothers me more - the different sizes or monospace font for reading 😉

I understand that since this bug hangs there for 5 years now we shouldn’t expect it to be fixed anytime soon?

And for the recrod. Here is what you have to set:

```css
.CodeMirror, .CodeMirror-cursors, .CodeMirror-cursor {
  font-family: "JetBrains Mono";
}

```

As you expected - it still doesn’t work for headers. My guess would be that it’s because the cursor is rendered outside the `H*` tag.

---

<div class="post-metadata">

**Author:** ![mori](https://forum.obsidian.md/user_avatar/forum.obsidian.md/mori/32/1271_2.png) [@mori](https://forum.obsidian.md/u/mori)\
**Post date:** [September 21, 2020, 5:56am UTC](https://forum.obsidian.md/t/block-cursor-is-too-small-for-vim-input-mode/5763/4 "2020-09-21T05:56:35Z")

</div>

One thing I don’t understand completely is that it works great when in visual selection mode.

---

<div class="post-metadata">

**Author:** ![ryanzhuo](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/r/ac91a4/32.png) [@ryanzhuo](https://forum.obsidian.md/u/ryanzhuo)\
**Post date:** [June 25, 2021, 12:59am UTC](https://forum.obsidian.md/t/block-cursor-is-too-small-for-vim-input-mode/5763/5 "2021-06-25T00:59:52Z")

</div>

Yes, I also find this problem. 😂

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [October 13, 2022, 4:08pm UTC](https://forum.obsidian.md/t/block-cursor-is-too-small-for-vim-input-mode/5763/6 "2022-10-13T16:08:28Z")

</div>

Archived on October 13, 2022, 4:08pm UTC


