I'm using xfce4-terminal and the cursor is green, which means that green text behind the cursor is not visible or is hard to see.

Is there a way to force the etext behind the cursor to be some specific color like white or black?

I've tried evaluating the following commands in an attempt to change the color of the character obscured by the cursor to black.

I've tried the following commands in an attempt to influence the color of the character behind the cursor, but nothing has worked so far.

:highlight CursorLine ctermfg=black ctermbg=black guifg=black guibg=black
:highlight Cursor ctermfg=black ctermbg=black guifg=black guibg=black
:highlight CursorColumn ctermfg=black ctermbg=black guifg=black guibg=black

The question below on SuperUser suggests that Vim in a terminal emulator (as opposed to GVim) has limited control over what color the cursor is.


However, I'm not trying to control the color that xfce4-terminal decides to use for the cursor, I just want to be able to define a high-precedence highlight definition to change the color of the character under the cursor regardless of what context it appears in or what words it's part of.

  • First of all, cursorline and cursorcolumn are not for what you want. And I tried for a time to do what you're asking, but it's just way too much work. Later I moved on to st-terminal. It's way more light and customizable. – klaus Jul 19 '18 at 7:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.