mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
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:
16
runtime/lua/vim/_meta/options.lua
generated
16
runtime/lua/vim/_meta/options.lua
generated
@@ -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.
|
||||
|
Reference in New Issue
Block a user