CursorColumn
is irrelevant, what you need to define is Cursor
, preferably with a background color different from CursorLines
's background color.
Supposing your Cursorline
has a dark gray background:
highlight CursorLine guibg=#303030
You can have a slightly lighter Cursor
:
highlight Cursor guibg=#626262
Vim's behavior may be different in a terminal emulator, though. As an example, whatever I do with cterm
or ctermbg
, I can't make it look how I want in Gnome terminal: it's always in reverse video. Which makes it perfectly outstanding, actually. In rxvt-unicode, the background color of the cursor is always the one defined in ~/.Xdefaults
, which can be whatever you want.
1The character under the cursor is already highlighted… by the cursor itself. What more do you want? – romainl – 2013-06-23T18:21:55.460
@romainl:I used the cursorline and the line is highlighted in a lightgray color.If I add the above snippet I get a cross.I want the instead the character under the cursor to get this color – user65971 – 2013-06-23T18:25:54.360