> On Fri, Nov 18, 2011 at 12:48 PM, hsitz <hes...@gmail.com> wrote:
> > Case 1b: This issue does not exist if the horizontal split on first
> > tab is of two different files. In that case issuing 'tab drop' from a
> > different tab will find the files on existing tab correctly.
>
> Do your windows also get rearranged here? Try with the "tab drop" file
> in the top window. For me, it was always moved to the bottom window.
> But I was using an empty buffer, not a second file, for my other
> split.
I'm not seeing any rearrangment in this case. Window layout stays the
same.
But I just discovered some more tab drop weirdness:
I have a few tabs open, each of them holding a fairly large document
that is folded using foldexpr. With the way Vim folding works, there
is a lag each time a file is loaded into the window as the foldexpr
assigns foldlevels to each line. Once loaded in a window however, you
can move between windows (even on different tabs) without retriggering
the foldexpr run on the buffer. This is main reason I use tabs, since
if I keep the documents open in a window on a tab I can quickly move
between windows/tabs without lags for foldexpr, whereas if I were
continually loading buffers into same window I would have several
seconds (or more) slowdown at each change.
The weirdness comes in when I try to do a 'tab drop' that should go to
a split-windowed-tab, which fails and instead opens a new tab. In
that case the fold status (or window load status?) of the window in
the tab I'm in when I issue the 'todo drop' gets partially reset, so
that if I try to 'tab drop' back to it the foldexpr/window load stuff
runs again. I think it's okay (i.e., no lag) if I go back to that tab/
window by means other than a 'tab drop'.
Also, the window load status of the windows in the split window (the
tab with the window that should have been found by 'tab drop') also
seems to get reset. So next time I visit that tab (always by means
other than 'tab drop' b/c tab drop doesn't find this split-window/tab)
it goes through lag of window-reload process.
I'm not positive above is absolutely accurate, but there is definitely
something strange going on with pre-existing windows going through a
reload process.
All of this is happening for me in context of a plugin that
programmatically issues 'tab drops' to go between windows/tabs (and
load new files into new tabs). 'tab drop' seems natural way to do
it, but I'm having to rewrite and not rely on 'tab drop'.
-- Herb
--
You received this message from the "vim_use" 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
No comments:
Post a Comment