Sublime Forum

ST3 - vim mode caret color

#1

Is it possible to change the block caret color (vim mode)?
I noticed if I use some theme the block cursor is not displayed, only the underline caret, based on that I think it could be done, but I can’t figure how.
I think it has to do with some setting in the theme that relates to ‘text’ or ‘source’

UPDATE:
In a theme I set the following (read the comments in the code):

  <key>settings</key>
  <array>
    <dict>
      <key>settings</key>
      <dict>
        <key>background</key>
        <string>#eeeeee</string>

        <!-- The color of the block caret is a faded version of this color -->
        <key>selection</key>
        <string>#99fda5</string>
      </dict>
    </dict>

    <!-- When I add the following code, the color of the block caret disappears -->
    <!-- I use this hack to make to make the gutter a different color from the text/source background -->
    <dict>
      <key>scope</key>
      <string>text, source</string>
      <key>settings</key>
      <dict>
        <key>background</key>
        <string>#f3f3f3</string>
      </dict>
    </dict>
  <array>

Is this a bug?

0 Likes