![how to change cursor color fill in windows how to change cursor color fill in windows](https://www.techcrises.com/wp-content/uploads/2019/01/word-image-17-1024x662.png)
It worked if 'two' backslash - But with "double-quote". Note: when using VIm with xterm on Cygwin use "xterm\|rxvt" (one backslash). " Recent versions of xterm (282 or above) also support " use \003]12 gray\007 for gnome-terminal and rxvt up to version 9.21Īnd changing the cursor shape (rxvt only accepts these escape sequences after version 9.21). Add the following to ~/.vimrc:Īutocmd VimLeave * silent !echo -ne "\033]112\007" Recent versions of gnome-terminal support the sequence to change color, but not the one to restore the color to the default. Not all terminals support this, but xterm, rxvt and Terminator do(must use nightly version for Terminator, as stable does not support cursor shape escape codes). It is possible to change the cursor color and style in the terminal if it understands the following escape sequences. When using ver100 vim doesn't take the guifg parameter.
![how to change cursor color fill in windows how to change cursor color fill in windows](https://www.howtogeek.com/wp-content/uploads/2016/09/05_selecting_pointer_color.png)
Line 4 also sets the cursor shape to a 100% sized vertical bar for insert mode (the default is ver25, a 25% vertical bar. Line 5 disables blinking ( blinkon value 0) for n-v-c modes, and line 6 increases the default blink rate for insert mode. Line 1 defines the color highlighting used for n-v-c modes (set in line 3), and line 2 defines a different color for insert mode (set in line 4). Highlight iCursor guifg=white guibg=steelblue
#How to change cursor color fill in windows how to#
Here is an example for gvim showing how to customize the cursor properties (see :help 'guicursor'): Using gvim with the defaults, the cursor shape is a block when in n-v-c modes (normal mode, or visual selection mode, or command mode while entering a colon command), and the shape changes to a vertical bar when in i (insert) mode. To help avoid that problem, you can specify that the cursor color and blink rate change when entering insert mode. You may start typing, thinking you are in insert mode, but find that the characters are interpreted as commands because you are actually in normal mode.