gibney.org : Technology : Vim : Background Color by Mode


just a logo :)

search:


See as: raw | code

terms of service | imprint

gibney.org
is powered by m1d1





Background Color by Mode
(Entry Nr. 354, by user 1 | edit)
Highlight the current line in edit mode. So you know, if you are editing or not :)
:hi CursorLine cterm=none ctermbg=52
:au InsertEnter * set cul
:au InsertLeave * set nocul

Please notice:
The change back to black needs about a second or so.
The color 52 is only available when 256 colors are active (:set t_Co=256)

Instead of the current line, also the whole background can be used:
:au InsertEnter * hi Normal ctermbg=52
:au InsertLeave * hi Normal ctermbg=black
Create a new entry at this position