Gary Johnson wrote:
As for your original question, I don't have a good answer. I
thought ":tabe #" might work, but when I tried it, closing the tab
also caused # to be undefined.
I was similarly puzzled by this behavior when I tried it. I
couldn't disinter any documentation on why closing a tab wipes
the name of the alternate file. I even tried various items like
:keepalt tabclose
There's no reference to "alternate" in
:help tabpage.txt
and none of the instances of "#" on the page refer to the
alternate file.
I suspect this is either a bug or an undocumented feature (though
it's entirely possible that's documented somewhere I can't find)
Looks like patches 104 & 121 patch (per pi_netrw.txt) tweaked a
forgetting of the alternate file, but that may be limited to
netrw. In todo.txt, I see
":tab split fname" doesn't set the alternate file in
the original window, because win_valid() always returns
FALSE. Below win_new_tabpage() in ex_docmd.c.
Patch 6.1a.010 also affected tab-pages and the alternate file
(from version6.txt)
That was about all I could find of interest with a
:helpgrep alternate\_[- ]file\c
-tim
--
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