Hi, thanks for the reply > statusline option can be different for different windows.
True. I mean, problem occurs only once when a new window got created. After that if I switch to another window and switch back, the statusline would be updated and everything looks normal. > btw..to restore string options you need to do setlocal statusline= I suppose 'setlocal statusline<' works too. Anyway the problem's not here, the 'WinLeave' autocommand works fine as expected as it restores the global value of 'statusline' when leaving a window and the 'StatusLineNC' coloring would be used for the whole statusline of the window leaved. > > isn' t this ':echo &l:statusline' throwing error? > No, my Gvim seems to be OK with it. Does your Vim throw errors? It does the same thing with 'setlocal statusline?' I suppose. Anyway, I found Vim to be obstinate with statuslines, it decides when to refresh them by itself, leaveing the user very few option about it. What confuse me most here is that the 'echomsg' command got executed but not the 'setlocal' command preceding it, like it was totally "optimized away". Another thing I've noticed about statusline is that there's simply no way to refresh it without destroying an on-showing pop-up menu, not even the standard statusline-refreshing process 'let &ro=&ro' given by the Vim help doc. It's not a big problem though, just would like to know the answer, if there is one. Thanks again. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
