Re: [vim/vim] Update last accessed tab page upon closing a tab (Issue #20965)
h_east (Vim Github Repository) <[email protected]> Fri, 07 Aug 2026 10:40:46 -0700
| Newsgroups | gmane.editors.vim.devel |
|---|---|
| Message-ID | <vim/vim/issues/20965/[email protected]> |
h-east left a comment (vim/vim#20965) The steps you describe cannot be fixed without keeping a history of visited tab pages. After step 4 the tab page you would go back to is the one you are already in, so a single "last used" entry has nothing left to point at. A history would be out of line with the rest of Vim, where the alternate file (`#`) and the previous window (`CTRL-W p`) are single entries as well, and it would make the destination of CTRL-Tab hard to predict. An autocmd on `TabLeave` is the way to get the behaviour you want. Looking into this did turn up a separate problem: closing a tab page clears the alternate tab page even when the alternate is a different tab page that still exists. #20973 fixes that. -- Reply to this email directly or view it on GitHub: https://github.com/vim/vim/issues/20965#issuecomment-5220226390 You are receiving this because you are subscribed to this thread. Message ID: <vim/vim/issues/20965/[email protected]> -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/vim/vim/issues/20965/5220226390%40github.com.