On Tue, Jan 25, 2011 at 12:10 PM, Rhialto <[email protected]> wrote: > I often use Vim running on another host, with the X connection tunneled > through ssh. That introduces a small amount of delay when updating big > areas, which probably helps me to see the issue. > > It has been like this for a a while, maybe as long as tabs have been > present. I'm using 7.2 with GTK GUI, but the exact version is probably > not so important, since I've seen the bug for so long. I have never > been able to pinpoint sufficient preconditions, however I have found a > few necessary ones. > > This is what I see: > > - I have multiple tabs open (2 is enough) > - The current tab is *not* the leftmost one > - I move my mouse from outside the Vim window to inside it. > Since I use focus-follows-mouse, this gives the Vim the focus. > (My window manager is ctwm, which may or may not matter) > - The filename shown in the leftmost tab is abbreviated > (shows like "/m/f/t/v/o/T/g/s/g/sa.py"). If you were to click on the > tab, it shows "sa.py"). > - The filename in the current tab shows "FileFormats.py". > - The current directories (:lcd) of both tabs are not the same. > > - When the mouse enters, the edit-part of the window is cleared, the > leftmost tab highlights as if selected (but it doesn't show the > filename as if clicked upon), then the correct tab highlights again > and the editor text is redrawn. This repeats a few times. So this > flashes a lot and takes noticeable time. > > These conditions together are not sufficient (and some of them may not > even be necessary). If I save my session with :mksession and :source > Session.vim in a new Vim instance, the bug does not immediately occur. > There must be at least one other circumstance, which I haven't been able > to find yet, which is needed to trigger the bug. > > If I use xev to snoop on the X events that are sent to the (outermost) > window, when the mouse enters, I see the following.
I wonder if this is exactly the same thing that I saw when I was working on Vim 6.0 about a decade ago? I was using a (don't laugh) 486 DX-2 running at 33Mhz (double-speed 486 running 66 Mhz) and a VERY basic X-Windows environment. Things ran VEEERRRRYYY slowly and I, too, saw (well, actually had to "sit through") flashing windows. I didn't have the time to track anything down, as I was just trying to get the Athena GUI's menu system working. I entered the issue into the Vim "todo.txt". Just type ":help todo", and then search for "Athena GUI". It's the 3rd item down (of the four). It drove me nuts! I barely remember that there seemed to be a lot of window updating going on, but didn't want to change anything "that wasn't broken". --David H. -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
