vim-neatstatus icon indicating copy to clipboard operation
vim-neatstatus copied to clipboard

All windows change to the same color mode

Open npearson72 opened this issue 12 years ago • 4 comments

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

npearson72 avatar Sep 05 '13 01:09 npearson72

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.

maciakl avatar Sep 06 '13 19:09 maciakl

For documentation purposes here is the screenshot illustrating the issue:

screenshot from 2013-09-06 15 10 33

maciakl avatar Sep 06 '13 19:09 maciakl

@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 avatar Jun 19 '14 13:06 albertosantini

@albertosantini setwinvar() works great! I now switch between two profiles, active and inactive status line. Thanks!

jonsecchis avatar Feb 12 '17 19:02 jonsecchis