vim-patch:9.1.0572: cannot specify tab page closing behaviour (#29682)

Problem:  cannot specify tab page closing behaviour
          (Gianluca Pacchiella)
Solution: Add the 'tabclose' option (LemonBoy).

fixes: vim/vim#5967
closes: vim/vim#15204

5247b0b92e

Co-authored-by: LemonBoy <thatlemon@gmail.com>
This commit is contained in:
zeertzjq
2024-07-13 08:56:58 +08:00
committed by GitHub
parent 10256bb760
commit b1aa8f5eb8
12 changed files with 161 additions and 11 deletions

View File

@@ -6837,6 +6837,22 @@ vim.o.syn = vim.o.syntax
vim.bo.syntax = vim.o.syntax
vim.bo.syn = vim.bo.syntax
--- This option controls the behavior when closing tab pages (e.g., using
--- `:tabclose`). When empty Vim goes to the next (right) tab page.
---
--- Possible values (comma-separated list):
--- left If included, go to the previous tab page instead of
--- the next one.
--- uselast If included, go to the previously used tab page if
--- possible. This option takes precedence over the
--- others.
---
--- @type string
vim.o.tabclose = ""
vim.o.tcl = vim.o.tabclose
vim.go.tabclose = vim.o.tabclose
vim.go.tcl = vim.go.tabclose
--- When non-empty, this option determines the content of the tab pages
--- line at the top of the Vim window. When empty Vim will use a default
--- tab pages line. See `setting-tabline` for more info.