I want to change the color of the cursor pending on the current mode.
Here is my code so far (.gvimrc).
set gcr=n:blinkon0
set gcr=i:blinkon0
highlight Cursor guifg=white guibg=red
highlight iCursor guifg=white guibg=green
Right now the cursor is gray, nothing changes.
Running highlight Cursor guifg=white guibg=red
manually works, but not the line below.
I want the color green in insert mode and red in every other mode.