Francois Ingelrest wrote:
> In my status line, I display the number of lines in the corresponding > buffer. If I split the window, so that I have the same buffer into two > visible windows, only the status line of the active window is updated. > For instance, if I add some new lines to the buffer, the number of > lines in the inactive windows remains the same. > > Even more confusing: If I change the file type, the syntax > highlighting is updated in both windows, but only the file type in the > status line of the active window is updated, not the other one. > > Is it the expected behavior? I would have expected the other status > line to be updated, even if the corresponding window is inactive, > since it's the same buffer I'm modifying. > > BTW, I'm using Vim 7.2.148 on Ubuntu Linux. It appears you have a custom statusline. This is not guaranteed to be updated on every little change in Vim's status. It's a trade off between updating the status line too often, which consumes time and performance, and the status line being slightly outdated. The ideal solution would be to inspect the statusline, find out what it depends on exactly and have the redraw trigger when one of the dependencies changes. But that's very complicated, since the status line can depend on very many values. -- "My particular problem is with registry entries, which seem to just accumulate like plastic coffee cups..." -- Paul Moore /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
