vegetablemao / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

Background color for inactive windows / per window #325

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have created a plugin which uses a hack to highlight the current window by 
dimming the inactive ones: https://github.com/blueyed/vim-diminactive

It does this by using the 'cursorcolumn' setting and/or 'syntax=off'.

While this works quite OK, there are several issues with this method:
1. Performance!
2. It does not handle long lines properly (a maximum of 256 columns can be 
highlighted using &cursorcolumn.
3. It does not handle non-lines ("~").

I could imagine having a new colorscheme highlighting group for this 
(background of inactive windows) instead.

Apart from that I could also imagine some windows-local variable to control the 
background color for it.  That would make it more flexible, and allow to use 
different colors per buffer type for example (quickfix etc).

Original issue reported on code.google.com by dhahler@gmail.com on 5 Feb 2015 at 8:37