vim-neatstatus
vim-neatstatus copied to clipboard
All windows change to the same color mode
Hi,
Not sure if it's me, but when I have multiple split windows and switch modes in one, the color indicator for that mode switches to the same color for all windows. The text (i.e. INSERT, etc..) changes properly.
Thanks, Nathan
Issue confirmed.
It actually seems to affect vim and gvim differently.
- In vim the text doesn't change but the color does
- In gvim both text and color change
Not entirely sure how to fix this yet.
For documentation purposes here is the screenshot illustrating the issue:

@maciakl your plugin inspired me and I created a very specific statusline for my needs.
As workaround I created a sort of active and inactive statusline.
autocmd! WinEnter,BufWinEnter *
\ call setwinvar(0, "&statusline", s:statusline)
autocmd! WinLeave,BufWinLeave *
\ exec "hi StatusLineNC guifg=#333333 guibg=#BBBBBB" |
\ call setwinvar(0, "&statusline", "")
You may give a look at the complete code at https://github.com/albertosantini/vimfiles/blob/master/plugin/statusline.vim
@albertosantini setwinvar() works great! I now switch between two profiles, active and inactive status line. Thanks!