mirror of
https://github.com/neovim/neovim.git
synced 2025-12-10 16:42:42 +00:00
docs(options): remove description for hidden options #30903
Problem: Hidden options are documented despite being no-ops. Solution: Remove docs for hidden options. Move tags for options that we plan to restore, to ":help nvim-missing". Move tags for permanently removed options, to ":help nvim-removed".
This commit is contained in:
259
runtime/lua/vim/_meta/options.lua
generated
259
runtime/lua/vim/_meta/options.lua
generated
@@ -575,19 +575,6 @@ vim.o.briopt = vim.o.breakindentopt
|
||||
vim.wo.breakindentopt = vim.o.breakindentopt
|
||||
vim.wo.briopt = vim.wo.breakindentopt
|
||||
|
||||
--- Which directory to use for the file browser:
|
||||
--- last Use same directory as with last file browser, where a
|
||||
--- file was opened or saved.
|
||||
--- buffer Use the directory of the related buffer.
|
||||
--- current Use the current directory.
|
||||
--- {path} Use the specified directory
|
||||
---
|
||||
--- @type string
|
||||
vim.o.browsedir = ""
|
||||
vim.o.bsdir = vim.o.browsedir
|
||||
vim.go.browsedir = vim.o.browsedir
|
||||
vim.go.bsdir = vim.go.browsedir
|
||||
|
||||
--- This option specifies what happens when a buffer is no longer
|
||||
--- displayed in a window:
|
||||
--- <empty> follow the global 'hidden' option
|
||||
@@ -2900,148 +2887,6 @@ vim.o.gfw = vim.o.guifontwide
|
||||
vim.go.guifontwide = vim.o.guifontwide
|
||||
vim.go.gfw = vim.go.guifontwide
|
||||
|
||||
--- This option only has an effect in the GUI version of Vim. It is a
|
||||
--- sequence of letters which describes what components and options of the
|
||||
--- GUI should be used.
|
||||
--- To avoid problems with flags that are added in the future, use the
|
||||
--- "+=" and "-=" feature of ":set" `add-option-flags`.
|
||||
---
|
||||
--- Valid letters are as follows:
|
||||
--- *guioptions_a* *'go-a'*
|
||||
--- 'a' Autoselect: If present, then whenever VISUAL mode is started,
|
||||
--- or the Visual area extended, Vim tries to become the owner of
|
||||
--- the windowing system's global selection. This means that the
|
||||
--- Visually highlighted text is available for pasting into other
|
||||
--- applications as well as into Vim itself. When the Visual mode
|
||||
--- ends, possibly due to an operation on the text, or when an
|
||||
--- application wants to paste the selection, the highlighted text
|
||||
--- is automatically yanked into the "* selection register.
|
||||
--- Thus the selection is still available for pasting into other
|
||||
--- applications after the VISUAL mode has ended.
|
||||
--- If not present, then Vim won't become the owner of the
|
||||
--- windowing system's global selection unless explicitly told to
|
||||
--- by a yank or delete operation for the "* register.
|
||||
--- The same applies to the modeless selection.
|
||||
--- *'go-P'*
|
||||
--- 'P' Like autoselect but using the "+ register instead of the "*
|
||||
--- register.
|
||||
--- *'go-A'*
|
||||
--- 'A' Autoselect for the modeless selection. Like 'a', but only
|
||||
--- applies to the modeless selection.
|
||||
---
|
||||
--- 'guioptions' autoselect Visual autoselect modeless ~
|
||||
--- "" - -
|
||||
--- "a" yes yes
|
||||
--- "A" - yes
|
||||
--- "aA" yes yes
|
||||
---
|
||||
--- *'go-c'*
|
||||
--- 'c' Use console dialogs instead of popup dialogs for simple
|
||||
--- choices.
|
||||
--- *'go-d'*
|
||||
--- 'd' Use dark theme variant if available.
|
||||
--- *'go-e'*
|
||||
--- 'e' Add tab pages when indicated with 'showtabline'.
|
||||
--- 'guitablabel' can be used to change the text in the labels.
|
||||
--- When 'e' is missing a non-GUI tab pages line may be used.
|
||||
--- The GUI tabs are only supported on some systems, currently
|
||||
--- Mac OS/X and MS-Windows.
|
||||
--- *'go-i'*
|
||||
--- 'i' Use a Vim icon.
|
||||
--- *'go-m'*
|
||||
--- 'm' Menu bar is present.
|
||||
--- *'go-M'*
|
||||
--- 'M' The system menu "$VIMRUNTIME/menu.vim" is not sourced. Note
|
||||
--- that this flag must be added in the vimrc file, before
|
||||
--- switching on syntax or filetype recognition (when the `gvimrc`
|
||||
--- file is sourced the system menu has already been loaded; the
|
||||
--- `:syntax on` and `:filetype on` commands load the menu too).
|
||||
--- *'go-g'*
|
||||
--- 'g' Grey menu items: Make menu items that are not active grey. If
|
||||
--- 'g' is not included inactive menu items are not shown at all.
|
||||
--- *'go-T'*
|
||||
--- 'T' Include Toolbar. Currently only in Win32 GUI.
|
||||
--- *'go-r'*
|
||||
--- 'r' Right-hand scrollbar is always present.
|
||||
--- *'go-R'*
|
||||
--- 'R' Right-hand scrollbar is present when there is a vertically
|
||||
--- split window.
|
||||
--- *'go-l'*
|
||||
--- 'l' Left-hand scrollbar is always present.
|
||||
--- *'go-L'*
|
||||
--- 'L' Left-hand scrollbar is present when there is a vertically
|
||||
--- split window.
|
||||
--- *'go-b'*
|
||||
--- 'b' Bottom (horizontal) scrollbar is present. Its size depends on
|
||||
--- the longest visible line, or on the cursor line if the 'h'
|
||||
--- flag is included. `gui-horiz-scroll`
|
||||
--- *'go-h'*
|
||||
--- 'h' Limit horizontal scrollbar size to the length of the cursor
|
||||
--- line. Reduces computations. `gui-horiz-scroll`
|
||||
---
|
||||
--- And yes, you may even have scrollbars on the left AND the right if
|
||||
--- you really want to :-). See `gui-scrollbars` for more information.
|
||||
---
|
||||
--- *'go-v'*
|
||||
--- 'v' Use a vertical button layout for dialogs. When not included,
|
||||
--- a horizontal layout is preferred, but when it doesn't fit a
|
||||
--- vertical layout is used anyway. Not supported in GTK 3.
|
||||
--- *'go-p'*
|
||||
--- 'p' Use Pointer callbacks for X11 GUI. This is required for some
|
||||
--- window managers. If the cursor is not blinking or hollow at
|
||||
--- the right moment, try adding this flag. This must be done
|
||||
--- before starting the GUI. Set it in your `gvimrc`. Adding or
|
||||
--- removing it after the GUI has started has no effect.
|
||||
--- *'go-k'*
|
||||
--- 'k' Keep the GUI window size when adding/removing a scrollbar, or
|
||||
--- toolbar, tabline, etc. Instead, the behavior is similar to
|
||||
--- when the window is maximized and will adjust 'lines' and
|
||||
--- 'columns' to fit to the window. Without the 'k' flag Vim will
|
||||
--- try to keep 'lines' and 'columns' the same when adding and
|
||||
--- removing GUI components.
|
||||
---
|
||||
--- @type string
|
||||
vim.o.guioptions = ""
|
||||
vim.o.go = vim.o.guioptions
|
||||
vim.go.guioptions = vim.o.guioptions
|
||||
vim.go.go = vim.go.guioptions
|
||||
|
||||
--- When non-empty describes the text to use in a label of the GUI tab
|
||||
--- pages line. When empty and when the result is empty Vim will use a
|
||||
--- default label. See `setting-guitablabel` for more info.
|
||||
---
|
||||
--- The format of this option is like that of 'statusline'.
|
||||
--- 'guitabtooltip' is used for the tooltip, see below.
|
||||
--- The expression will be evaluated in the `sandbox` when set from a
|
||||
--- modeline, see `sandbox-option`.
|
||||
--- This option cannot be set in a modeline when 'modelineexpr' is off.
|
||||
---
|
||||
--- Only used when the GUI tab pages line is displayed. 'e' must be
|
||||
--- present in 'guioptions'. For the non-GUI tab pages line 'tabline' is
|
||||
--- used.
|
||||
---
|
||||
--- @type string
|
||||
vim.o.guitablabel = ""
|
||||
vim.o.gtl = vim.o.guitablabel
|
||||
vim.go.guitablabel = vim.o.guitablabel
|
||||
vim.go.gtl = vim.go.guitablabel
|
||||
|
||||
--- When non-empty describes the text to use in a tooltip for the GUI tab
|
||||
--- pages line. When empty Vim will use a default tooltip.
|
||||
--- This option is otherwise just like 'guitablabel' above.
|
||||
--- You can include a line break. Simplest method is to use `:let`:
|
||||
---
|
||||
--- ```vim
|
||||
--- let &guitabtooltip = "line one\nline two"
|
||||
--- ```
|
||||
---
|
||||
---
|
||||
--- @type string
|
||||
vim.o.guitabtooltip = ""
|
||||
vim.o.gtt = vim.o.guitabtooltip
|
||||
vim.go.guitabtooltip = vim.o.guitabtooltip
|
||||
vim.go.gtt = vim.go.guitabtooltip
|
||||
|
||||
--- Name of the main help file. All distributed help files should be
|
||||
--- placed together in one directory. Additionally, all "doc" directories
|
||||
--- in 'runtimepath' will be used.
|
||||
@@ -3184,29 +3029,6 @@ vim.o.ic = vim.o.ignorecase
|
||||
vim.go.ignorecase = vim.o.ignorecase
|
||||
vim.go.ic = vim.go.ignorecase
|
||||
|
||||
--- When set the Input Method is always on when starting to edit a command
|
||||
--- line, unless entering a search pattern (see 'imsearch' for that).
|
||||
--- Setting this option is useful when your input method allows entering
|
||||
--- English characters directly, e.g., when it's used to type accented
|
||||
--- characters with dead keys.
|
||||
---
|
||||
--- @type boolean
|
||||
vim.o.imcmdline = false
|
||||
vim.o.imc = vim.o.imcmdline
|
||||
vim.go.imcmdline = vim.o.imcmdline
|
||||
vim.go.imc = vim.go.imcmdline
|
||||
|
||||
--- When set the Input Method is never used. This is useful to disable
|
||||
--- the IM when it doesn't work properly.
|
||||
--- Currently this option is on by default for SGI/IRIX machines. This
|
||||
--- may change in later releases.
|
||||
---
|
||||
--- @type boolean
|
||||
vim.o.imdisable = false
|
||||
vim.o.imd = vim.o.imdisable
|
||||
vim.go.imdisable = vim.o.imdisable
|
||||
vim.go.imd = vim.go.imdisable
|
||||
|
||||
--- Specifies whether :lmap or an Input Method (IM) is to be used in
|
||||
--- Insert mode. Valid values:
|
||||
--- 0 :lmap is off and IM is off
|
||||
@@ -4491,74 +4313,6 @@ vim.go.mousemev = vim.go.mousemoveevent
|
||||
vim.o.mousescroll = "ver:3,hor:6"
|
||||
vim.go.mousescroll = vim.o.mousescroll
|
||||
|
||||
--- This option tells Vim what the mouse pointer should look like in
|
||||
--- different modes. The option is a comma-separated list of parts, much
|
||||
--- like used for 'guicursor'. Each part consist of a mode/location-list
|
||||
--- and an argument-list:
|
||||
--- mode-list:shape,mode-list:shape,..
|
||||
--- The mode-list is a dash separated list of these modes/locations:
|
||||
--- In a normal window: ~
|
||||
--- n Normal mode
|
||||
--- v Visual mode
|
||||
--- ve Visual mode with 'selection' "exclusive" (same as 'v',
|
||||
--- if not specified)
|
||||
--- o Operator-pending mode
|
||||
--- i Insert mode
|
||||
--- r Replace mode
|
||||
---
|
||||
--- Others: ~
|
||||
--- c appending to the command-line
|
||||
--- ci inserting in the command-line
|
||||
--- cr replacing in the command-line
|
||||
--- m at the 'Hit ENTER' or 'More' prompts
|
||||
--- ml idem, but cursor in the last line
|
||||
--- e any mode, pointer below last window
|
||||
--- s any mode, pointer on a status line
|
||||
--- sd any mode, while dragging a status line
|
||||
--- vs any mode, pointer on a vertical separator line
|
||||
--- vd any mode, while dragging a vertical separator line
|
||||
--- a everywhere
|
||||
---
|
||||
--- The shape is one of the following:
|
||||
--- avail name looks like ~
|
||||
--- w x arrow Normal mouse pointer
|
||||
--- w x blank no pointer at all (use with care!)
|
||||
--- w x beam I-beam
|
||||
--- w x updown up-down sizing arrows
|
||||
--- w x leftright left-right sizing arrows
|
||||
--- w x busy The system's usual busy pointer
|
||||
--- w x no The system's usual "no input" pointer
|
||||
--- x udsizing indicates up-down resizing
|
||||
--- x lrsizing indicates left-right resizing
|
||||
--- x crosshair like a big thin +
|
||||
--- x hand1 black hand
|
||||
--- x hand2 white hand
|
||||
--- x pencil what you write with
|
||||
--- x question big ?
|
||||
--- x rightup-arrow arrow pointing right-up
|
||||
--- w x up-arrow arrow pointing up
|
||||
--- x <number> any X11 pointer number (see X11/cursorfont.h)
|
||||
---
|
||||
--- The "avail" column contains a 'w' if the shape is available for Win32,
|
||||
--- x for X11.
|
||||
--- Any modes not specified or shapes not available use the normal mouse
|
||||
--- pointer.
|
||||
---
|
||||
--- Example:
|
||||
---
|
||||
--- ```vim
|
||||
--- set mouseshape=s:udsizing,m:no
|
||||
--- ```
|
||||
--- will make the mouse turn to a sizing arrow over the status lines and
|
||||
--- indicate no input when the hit-enter prompt is displayed (since
|
||||
--- clicking the mouse has no effect in this state.)
|
||||
---
|
||||
--- @type string
|
||||
vim.o.mouseshape = ""
|
||||
vim.o.mouses = vim.o.mouseshape
|
||||
vim.go.mouseshape = vim.o.mouseshape
|
||||
vim.go.mouses = vim.go.mouseshape
|
||||
|
||||
--- Defines the maximum time in msec between two mouse clicks for the
|
||||
--- second click to be recognized as a multi click.
|
||||
---
|
||||
@@ -4678,19 +4432,6 @@ vim.o.ofu = vim.o.omnifunc
|
||||
vim.bo.omnifunc = vim.o.omnifunc
|
||||
vim.bo.ofu = vim.bo.omnifunc
|
||||
|
||||
--- only for Windows
|
||||
--- Enable reading and writing from devices. This may get Vim stuck on a
|
||||
--- device that can be opened but doesn't actually do the I/O. Therefore
|
||||
--- it is off by default.
|
||||
--- Note that on Windows editing "aux.h", "lpt1.txt" and the like also
|
||||
--- result in editing a device.
|
||||
---
|
||||
--- @type boolean
|
||||
vim.o.opendevice = false
|
||||
vim.o.odev = vim.o.opendevice
|
||||
vim.go.opendevice = vim.o.opendevice
|
||||
vim.go.odev = vim.go.opendevice
|
||||
|
||||
--- This option specifies a function to be called by the `g@` operator.
|
||||
--- See `:map-operator` for more info and an example. The value can be
|
||||
--- the name of a function, a `lambda` or a `Funcref`. See
|
||||
|
||||
Reference in New Issue
Block a user