Search code examples
sublimetext3sublimetexttext-cursor

Is it possible to have a block cursor in sublime text 3?


Not sure it is most appropriate to post it here. I don't find it on either Sublime's official/unofficial documents or the web.

Anyone has a solution to have a vim/terminal type block cursor in sublime text?

Any suggestion is welcome. Thank you in advance.


Solution

  • I figured out by looking at some settings in afterglow - twilight, these lines in the color themes would work well with caret_inverse_style: true

    <dict>
        <key>settings</key>
        <dict>
            <key>background</key>
            <string>#2E2E2E</string>
            <key>caret</key>
            <string>#4169E1</string>
            <key>foreground</key>
            <string>#d6d6d6</string>
            <key>invisibles</key>
            <string>#FFFFFF40</string>
            <key>lineHighlight</key>
            <string>#FFFFFF08</string>
            <key>selection</key>
            <string>#4169E1</string>
        </dict>
    </dict>
    

    specifically, the "caret color" will be the color of the caret, and the "selection" color will be the background of the area of the caret (similar to a block cursor.