How to set background color for Vim’s active window only

gvimvim

A small but visually pleasing feature, and slightly adding to usability, I'd like to have Vim use different background color for the active window.

Here's a sketch of what I am after:

enter image description here

Normally that vim would have all the background in black, but if only the active window had its own color to highlight user's attention. Highlighting just the statusbar only isn't enough!

Best Answer

Heptite, thank you for the idea.

I just replace WinEnter and WinLeave autocmd's to add / remove line numbers in front of each line:

augroup BgHighlight
    autocmd!
    autocmd WinEnter * set number
    autocmd WinLeave * set nonumber
augroup END

Now is more stylish to track which window is active.