How to Change Block Cursor Color (Vim Mode)

Perfect, thank you so much, that was it! That solves it for me

just for the sake of others who might find this post.

Aparrently it’s also possible to define it like this:

  .CodeMirror-cursor {
  background-color: #ff0000 !important;
  opacity: 60% !important;
  }

in the case of this code it’s needed to put !important like you said!

Thanks a lot for the help!

Update:

this code would change the cursor even when it’s not in vim-mode

to keep in only in vim mode the .cm-fat-cursor .CodeMirror-cursor is needed

1 Like