Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Background color for inactive windows / per window #5302
What do you think about having a highlighting group for inactive windows?
I am experiencing some issues myself with the plugin from time to time, probably because of other plugins over-using
Wouldn't it be rather trivial to support this in Neovim/Vim directly: just have a different background for non-current windows?!
In a perfect world this would also apply the "current" style to any location list for the current window.
referenced this issue
Sep 6, 2016
I've always been thinking about this, why not step further, let [n]vim maintains separate syntax/color scheme data info per window.
Then we can, for example, edit a python buffer in one window applying a color scheme that is best for python language, and edit a c buffer in another window applying a different color scheme that is best for c language.
I'd also really like a good way to distinguish the currently active window. Though I'm not sure dimming the background is ideal, but the thing needed here may be useful for other cases.
One might say that window-local highlight groups are needed, but that seems like a mess for little gain. Instead
By the way, since Nvim supports mapping
But again that would work better if non-text could be highlighted by
How much more useful would that be compared to
You can already assign different colors to the specific syntax groups for C and python. E.g.:
hi pythonFunction ... hi cUserFunction ...
Different color scheme authors focus on limited range of different languages, they craft their color scheme file often according to their daily use scenario. So I think each color scheme file has its focused one or ones among hundreds existing languages.
Similar to what GitHub did, it gives each language a representative color, each language appears
This feature make [n]vim more versatile on colorization (maybe more colorful) especially on true color environments. Something like this (simulated by tmux panes)
However I admit that it is not a urgent or key feature to [n]vim, just a wishlist item.