robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

robinmerge: 1dc9728daa1d8a2702

master
458.9 KiB11419 linesraw
1-- vim: tw=78
2
3--- @class vim.option_meta
4--- @field abbreviation? string
5--- @field alias? string|string[]
6--- Defaults to 'did_set_str_generic' when `flags_varname` is present.
7--- @field cb? string Applies the stored value and updates derived state.
8--- @field validation_cb? string Checks a candidate value without side effects.
9--- @field defaults? vim.option_defaults|vim.option_value|fun(): string
10--- @field deny_duplicates? boolean
11--- @field desc? string
12--- @field enable_if? string
13--- @field expand? string|true
14--- If not provided and `values` is present, then is set to 'expand_set_str_generic'
15--- @field expand_cb? string
16--- @field flags_varname? string
17--- @field full_name string
18--- @field immutable? boolean
19--- @field list? 'comma'|'onecomma'|'commacolon'|'onecommacolon'|'flags'|'flagscomma'
20--- @field modelineexpr? true
21--- @field no_mkrc? true
22--- @field nodefault? true
23--- @field noglob? true
24--- @field normal_dname_chars? true
25--- @field normal_fname_chars? true
26--- @field pri_mkrc? true
27--- @field redraw? vim.option_redraw[]
28--- @field schema? vim.option_schema
29--- @field scope vim.option_scope[]
30--- @field secure? true
31--- @field short_desc? string|fun(): string
32--- @field tags? string[]
33--- @field type vim.option_type
34--- @field varname? string
35
36--- @class vim.option_defaults
37--- @field condition? string
38---    string: #ifdef string
39---    !string: #ifndef string
40--- @field if_true vim.option_value|fun(): string
41--- @field if_false? vim.option_value
42--- @field doc? string Default to show in options.txt
43--- @field meta? string Default to use in Lua meta files
44
45--- @alias vim.option_scope 'global'|'buf'|'win'|'tab'
46--- Option value type. `func` ('omnifunc') and `expr` ('foldexpr') are "callback" options: stored
47--- as a `Callback`, accepting a function name/expression string or a Lua function.
48--- @alias vim.option_type 'boolean'|'number'|'string'|'func'|'expr'
49--- @alias vim.option_value boolean|integer|string
50
51--- Options for a `char`/`chars` schema key.
52--- @class vim.option_schema.char.opts
53--- @field field? string|false  fcs_chars/lcs_chars field (default: key name; false = no storage)
54--- @field def? string  default char
55--- @field fallback? string  default char when "def" isn't single-width
56
57--- A `char`/`chars` schema key (e.g. 'listchars' "eol"/"tab"), generating a chars_tab[] entry.
58--- @alias vim.option_schema.char [string, 'char'|'chars', vim.option_schema.char.opts?]
59
60--- A key of a `dict` schema: a bare flag (boolean), a typed value, or an enum value.
61--- @alias vim.option_schema.dictkey
62--- | string
63--- | [string, 'num'|'snum'|'str']
64--- | [string, 'enum', {values: string[]}]
65
66--- Declarative grammar of a structured "string" option, as a category record. Usually exactly one
67--- field is set; `flags`+`enum` combine for 'cursorlineopt' (its "both" alias has no bit).
68--- @class vim.option_schema
69--- @field chars? vim.option_schema.char[]     chars_tab[] dispatch, e.g. 'listchars'
70--- @field dict? vim.option_schema.dictkey[]   key:value map, reified to a keyset, e.g. 'diffopt'
71--- @field enum? string[]                      single-choice values, e.g. 'ambiwidth' {'single','double'}
72--- @field flagchars? table<string,string>     char flags: name -> char, e.g. 'formatoptions'
73--- @field flags? (string|[string,integer]|[string,integer,string])[] bitmask flags (a `set` + C constants), e.g. 'foldopen'. A 3rd tuple element overrides the C token.
74--- @field set? string[]                       multi-choice (comma list) values, e.g. 'backspace'
75
76--- @alias vim.option_redraw
77--- |'statuslines'
78--- |'tabline'
79--- |'current_window'
80--- |'current_buffer'
81--- |'all_windows'
82--- |'curswant'
83--- |'highlight_only'
84--- |'ui_option'
85
86--- @param s string
87--- @return string
88local function cstr(s)
89  return '"' .. s:gsub('["\\]', '\\%0'):gsub('\t', '\\t') .. '"'
90end
91
92--- @param s string
93--- @param t vim.option_type
94--- @return fun(): string, vim.option_type
95local function macros(s, t)
96  return function()
97    return s, t
98  end
99end
100
101--- @param s string
102--- @return fun(): string
103local function N_(s) -- luacheck: ignore 211 (currently unused)
104  return function()
105    return 'N_(' .. cstr(s) .. ')'
106  end
107end
108
109-- luacheck: ignore 621
110local options = {
111  cstr = cstr,
112  --- @type string[]
113  valid_scopes = { 'global', 'buf', 'win', 'tab' },
114  --- @type vim.option_meta[]
115  --- The order of the options MUST be alphabetic for ":set all".
116  options = {
117    {
118      abbreviation = 'al',
119      defaults = 224,
120      full_name = 'aleph',
121      scope = { 'global' },
122      short_desc = N_('ASCII code of the letter Aleph (Hebrew)'),
123      type = 'number',
124      immutable = true,
125    },
126    {
127      abbreviation = 'ari',
128      defaults = false,
129      desc = [=[
130        Allow CTRL-_ in Insert mode.  This is default off, to avoid that users
131        that accidentally type CTRL-_ instead of SHIFT-_ get into reverse
132        Insert mode, and don't know how to get out.  See 'revins'.
133      ]=],
134      full_name = 'allowrevins',
135      scope = { 'global' },
136      short_desc = N_('allow CTRL-_ in Insert mode'),
137      type = 'boolean',
138      varname = 'p_ari',
139    },
140    {
141      abbreviation = 'ambw',
142      cb = 'did_set_ambiwidth',
143      validation_cb = 'validate_str_generic',
144      defaults = 'single',
145      schema = {
146        enum = { 'single', 'double' },
147      },
148      desc = [=[
149        Tells Vim what to do with characters with East Asian Width Class
150        Ambiguous (such as Euro, Registered Sign, Copyright Sign, Greek
151        letters, Cyrillic letters).
152
153        There are currently two possible values:
154        "single":	Use the same width as characters in US-ASCII.  This is
155        		expected by most users.
156        "double":	Use twice the width of ASCII characters.
157        						*E834* *E835*
158        The value "double" cannot be used if 'listchars' or 'fillchars'
159        contains a character that would be double width.  These errors may
160        also be given when calling setcellwidths().
161
162        The values are overruled for characters specified with
163        |setcellwidths()|.
164
165        There are a number of CJK fonts for which the width of glyphs for
166        those characters are solely based on how many octets they take in
167        legacy/traditional CJK encodings.  In those encodings, Euro,
168        Registered sign, Greek/Cyrillic letters are represented by two octets,
169        therefore those fonts have "wide" glyphs for them.  This is also
170        true of some line drawing characters used to make tables in text
171        file.  Therefore, when a CJK font is used for GUI Vim or
172        Vim is running inside a terminal (emulators) that uses a CJK font
173        (or Vim is run inside an xterm invoked with "-cjkwidth" option.),
174        this option should be set to "double" to match the width perceived
175        by Vim with the width of glyphs in the font.  Perhaps it also has
176        to be set to "double" under CJK MS-Windows when the system locale is
177        set to one of CJK locales.  See Unicode Standard Annex #11
178        (https://www.unicode.org/reports/tr11).
179      ]=],
180      full_name = 'ambiwidth',
181      redraw = { 'all_windows', 'ui_option' },
182      scope = { 'global' },
183      short_desc = N_('what to do with Unicode chars of ambiguous width'),
184      type = 'string',
185      varname = 'p_ambw',
186    },
187    {
188      abbreviation = 'arab',
189      cb = 'did_set_arabic',
190      defaults = false,
191      desc = [=[
192        This option can be set to start editing Arabic text.
193        Setting this option will:
194        - Set the 'rightleft' option, unless 'termbidi' is set.
195        - Set the 'arabicshape' option, unless 'termbidi' is set.
196        - Set the 'keymap' option to "arabic"; in Insert mode CTRL-^ toggles
197          between typing English and Arabic key mapping.
198        - Set the 'delcombine' option
199
200        Resetting this option will:
201        - Reset the 'rightleft' option.
202        - Disable the use of 'keymap' (without changing its value).
203        Note that 'arabicshape' and 'delcombine' are not reset (it is a global
204        option).
205        Also see |l10n-arabic.txt|.
206      ]=],
207      full_name = 'arabic',
208      redraw = { 'curswant' },
209      scope = { 'win' },
210      short_desc = N_('Arabic as a default second language'),
211      type = 'boolean',
212    },
213    {
214      abbreviation = 'arshape',
215      defaults = true,
216      desc = [=[
217        When on and 'termbidi' is off, the required visual character
218        corrections that need to take place for displaying the Arabic language
219        take effect.  Shaping, in essence, gets enabled; the term is a broad
220        one which encompasses:
221          a) the changing/morphing of characters based on their location
222             within a word (initial, medial, final and stand-alone).
223          b) the enabling of the ability to compose characters
224          c) the enabling of the required combining of some characters
225        When disabled the display shows each character's true stand-alone
226        form.
227        Arabic is a complex language which requires other settings, for
228        further details see |l10n-arabic.txt|.
229      ]=],
230      full_name = 'arabicshape',
231      redraw = { 'all_windows', 'ui_option' },
232      scope = { 'global' },
233      short_desc = N_('do shaping for Arabic characters'),
234      type = 'boolean',
235      varname = 'p_arshape',
236    },
237    {
238      abbreviation = 'acd',
239      cb = 'did_set_autochdir',
240      defaults = false,
241      desc = [=[
242        When on, Nvim will change its global |current-directory| to the parent
243        of the current file, whenever you open a file, switch buffers, delete
244        a buffer or open/close a window.
245
246        When a buffer has no name it also has no directory, thus the current
247        directory won't change when navigating to it.
248
249        Note: When this option is on some plugins may not work.
250
251        Alternatively, consider using |:bcd|, |:lcd|, or |:tcd| in an autocmd,
252        to selectively set a local (not global) directory. See |project-dir|.
253      ]=],
254      full_name = 'autochdir',
255      scope = { 'global' },
256      short_desc = N_('change directory to the file in the current window'),
257      type = 'boolean',
258      varname = 'p_acd',
259    },
260    {
261      abbreviation = 'ac',
262      defaults = false,
263      desc = [=[
264        When on, Vim shows a completion menu as you type, similar to using
265        |i_CTRL-N|, but triggered automatically.  See |ins-autocompletion|.
266      ]=],
267      full_name = 'autocomplete',
268      scope = { 'global', 'buf' },
269      short_desc = N_('automatic completion in insert mode'),
270      type = 'boolean',
271      varname = 'p_ac',
272    },
273    {
274      abbreviation = 'acl',
275      defaults = 0,
276      desc = [=[
277        Delay in milliseconds before the autocomplete menu appears after
278        typing.  If you prefer it not to open too quickly, set this value
279        slightly above your typing speed.  See |ins-autocompletion|.
280      ]=],
281      full_name = 'autocompletedelay',
282      scope = { 'global' },
283      short_desc = N_('delay in msec before menu appears after typing'),
284      type = 'number',
285      varname = 'p_acl',
286    },
287    {
288      abbreviation = 'act',
289      defaults = 80,
290      desc = [=[
291        Initial timeout (in milliseconds) for the decaying time-sliced
292        completion algorithm.  Starts at this value, halves for each slower
293        source until a minimum is reached.  All sources run, but slower ones
294        are quickly de-prioritized.  The default is tuned so the popup menu
295        opens within ~200ms even with multiple slow sources on a slow system.
296        Changing this value is rarely needed.  Only 80 or higher is valid.
297        Special case: when 'complete' contains "F" or "o" (function sources),
298        a longer timeout is used, allowing up to ~1s for sources such as LSP
299        servers that may sometimes take longer (e.g., while loading modules).
300        See |ins-autocompletion|.
301      ]=],
302      full_name = 'autocompletetimeout',
303      scope = { 'global' },
304      short_desc = N_('initial decay timeout for autocompletion algorithm'),
305      type = 'number',
306      varname = 'p_act',
307    },
308    {
309      abbreviation = 'ai',
310      defaults = true,
311      desc = [=[
312        Copy indent from current line when starting a new line (typing <CR>
313        in Insert mode or when using the "o" or "O" command).  If you do not
314        type anything on the new line except <BS> or CTRL-D and then type
315        <Esc>, CTRL-O or <CR>, the indent is deleted again.  Moving the cursor
316        to another line has the same effect, unless the 'I' flag is included
317        in 'cpoptions'.
318        When autoindent is on, formatting (with the "gq" command or when you
319        reach 'textwidth' in Insert mode) uses the indentation of the first
320        line.
321        When 'smartindent' or 'cindent' is on the indent is changed in
322        a different way.
323      ]=],
324      full_name = 'autoindent',
325      scope = { 'buf' },
326      short_desc = N_('take indent for new line from previous line'),
327      type = 'boolean',
328      varname = 'p_ai',
329    },
330    {
331      abbreviation = 'ar',
332      defaults = true,
333      desc = [=[
334        When a file was changed outside of Nvim, automatically read it again.
335        Skipped if the file was deleted (so you still have the last-available
336        text). If the file appears again, then it is read; you can |undo| to
337        see the previous contents. |timestamp|
338
339        This is driven (partially) by OS filewatcher events |uv_fs_event_t|,
340        so buffers are updated immediately (instead of only on focus-change or
341        shell-commands).
342
343        If this option has a local value, use this command to switch back to
344        using the global value: >vim
345        	set autoread<
346        <
347      ]=],
348      full_name = 'autoread',
349      scope = { 'global', 'buf' },
350      short_desc = N_('autom. read file when changed outside of Vim'),
351      type = 'boolean',
352      varname = 'p_ar',
353    },
354    {
355      abbreviation = 'aw',
356      defaults = false,
357      desc = [=[
358        Write the contents of the file, if it has been modified, on each
359        `:next`, `:rewind`, `:last`, `:first`, `:previous`, `:tag`, `:stop`,
360        `:suspend`, `:!`, `:make`, `:terminal`, CTRL-] or CTRL-^ command; and
361        when a `:buffer`, CTRL-O, CTRL-I, '{A-Z0-9}, or `{A-Z0-9} command
362        switches to another file.
363        A buffer is not written if it becomes hidden, e.g. when 'bufhidden' is
364        set to "hide" and `:next` is used.
365        Note that for some commands the 'autowrite' option is not used, see
366        'autowriteall' for that.
367        Some buffers will not be written, specifically when 'buftype' is
368        "nowrite", "nofile", "terminal" or "prompt".
369        USE WITH CARE: If you make temporary changes to a buffer that you
370        don't want to be saved this option may cause it to be saved anyway.
371        Renaming the buffer with ":file {name}" may help avoid this.
372      ]=],
373      full_name = 'autowrite',
374      scope = { 'global' },
375      short_desc = N_('automatically write file if changed'),
376      type = 'boolean',
377      varname = 'p_aw',
378    },
379    {
380      abbreviation = 'awa',
381      defaults = false,
382      desc = [=[
383        Like 'autowrite', but also used for commands `:edit`, `:enew`,
384        `:quit`, `:qall`, `:exit`, `:xit`, `:recover` and closing the Vim
385        window.
386        Setting this option also implies that Vim behaves like 'autowrite' has
387        been set.
388      ]=],
389      full_name = 'autowriteall',
390      scope = { 'global' },
391      short_desc = N_("as 'autowrite', but works with more commands"),
392      type = 'boolean',
393      varname = 'p_awa',
394    },
395    {
396      abbreviation = 'bg',
397      cb = 'did_set_background',
398      validation_cb = 'validate_str_generic',
399      defaults = 'dark',
400      schema = {
401        enum = { 'light', 'dark' },
402      },
403      desc = [=[
404        When set to "dark" or "light", adjusts the default color groups for
405        that background type.  The |TUI| or other UI sets this on startup
406        if it can detect the background color, and re-detects it whenever a UI
407        attaches later, unless 'background' was set explicitly.  When multiple
408        UIs are attached they share one value, decided by "last wins" (may
409        not be the most recently-attached UI, since it depends on response
410        speed).
411
412        This option does NOT change the background color, it tells Nvim what
413        the "inherited" (terminal/GUI) background looks like. See |:hi-normal|
414        to set the background color explicitly.
415        					*g:colors_name*
416        When a color scheme is loaded (the "g:colors_name" variable is set)
417        changing 'background' will cause the color scheme to be reloaded.  If
418        the color scheme adjusts to the value of 'background' this will work.
419        However, if the color scheme sets 'background' itself the effect may
420        be undone.  First delete the "g:colors_name" variable when needed.
421
422        Historically, this option was set in the vimrc file.  Example: >vim
423        	if $TERM ==# "xterm"
424        	  set background=dark
425        	endif
426        <	When this option is changed, the defaults for highlight groups
427        will change.  To override those defaults, place ":highlight" commands
428        AFTER setting the 'background' option.
429      ]=],
430      full_name = 'background',
431      scope = { 'global' },
432      short_desc = N_('"dark" or "light", used for highlight colors'),
433      type = 'string',
434      varname = 'p_bg',
435    },
436    {
437      abbreviation = 'bs',
438      validation_cb = 'validate_backspace',
439      defaults = 'indent,eol,start',
440      schema = {
441        set = { 'indent', 'eol', 'start', 'nostop' },
442      },
443      deny_duplicates = true,
444      desc = [=[
445        Influences the working of <BS>, <Del>, CTRL-W and CTRL-U in Insert
446        mode.  This is a list of items, separated by commas.  Each item allows
447        a way to backspace over something:
448        value	effect	~
449        indent	allow backspacing over autoindent
450        eol	allow backspacing over line breaks (join lines)
451        start	allow backspacing over the start of insert; CTRL-W and CTRL-U
452        	stop once at the start of insert.
453        nostop	like start, except CTRL-W and CTRL-U do not stop at the start
454        	of insert.
455
456        When the value is empty, Vi compatible backspacing is used, none of
457        the ways mentioned for the items above are possible.
458      ]=],
459      full_name = 'backspace',
460      list = 'onecomma',
461      scope = { 'global' },
462      short_desc = N_('how backspace works at start of line'),
463      type = 'string',
464      varname = 'p_bs',
465    },
466    {
467      abbreviation = 'bk',
468      defaults = false,
469      desc = [=[
470        Make a backup before overwriting a file.  Leave it around after the
471        file has been successfully written.  If you do not want to keep the
472        backup file, but you do want a backup while the file is being
473        written, reset this option and set the 'writebackup' option (this is
474        the default).  If you do not want a backup file at all reset both
475        options (use this if your file system is almost full).  See the
476        |backup-table| for more explanations.
477        When the 'backupskip' pattern matches, a backup is not made anyway.
478        When 'patchmode' is set, the backup may be renamed to become the
479        oldest version of a file.
480      ]=],
481      full_name = 'backup',
482      scope = { 'global' },
483      short_desc = N_('keep backup file after overwriting a file'),
484      type = 'boolean',
485      varname = 'p_bk',
486    },
487    {
488      abbreviation = 'bkc',
489      cb = 'did_set_backupcopy',
490      validation_cb = 'validate_backupcopy',
491      defaults = { condition = 'UNIX', if_false = 'auto', if_true = 'auto' },
492      schema = {
493        flags = { 'yes', 'auto', 'no', 'breaksymlink', 'breakhardlink' },
494      },
495      deny_duplicates = true,
496      desc = [=[
497        When writing a file and a backup is made, this option tells how it's
498        done.  This is a comma-separated list of words.
499
500        The main values are:
501        "yes"	make a copy of the file and overwrite the original one
502        "no"	rename the file and write a new one
503        "auto"	one of the previous, what works best
504
505        Extra values that can be combined with the ones above are:
506        "breaksymlink"	always break symlinks when writing
507        "breakhardlink"	always break hardlinks when writing
508
509        Making a copy and overwriting the original file:
510        - Takes extra time to copy the file.
511        + When the file has special attributes, is a (hard/symbolic) link or
512          has a resource fork, all this is preserved.
513        - When the file is a link the backup will have the name of the link,
514          not of the real file.
515
516        Renaming the file and writing a new one:
517        + It's fast.
518        - Sometimes not all attributes of the file can be copied to the new
519          file.
520        - When the file is a link the new file will not be a link.
521
522        The "auto" value is the middle way: When Vim sees that renaming the
523        file is possible without side effects (the attributes can be passed on
524        and the file is not a link) that is used.  When problems are expected,
525        a copy will be made.
526
527        The "breaksymlink" and "breakhardlink" values can be used in
528        combination with any of "yes", "no" and "auto".  When included, they
529        force Vim to always break either symbolic or hard links by doing
530        exactly what the "no" option does, renaming the original file to
531        become the backup and writing a new file in its place.  This can be
532        useful for example in source trees where all the files are symbolic or
533        hard links and any changes should stay in the local source tree, not
534        be propagated back to the original source.
535        							*crontab*
536        One situation where "no" and "auto" will cause problems: A program
537        that opens a file, invokes Vim to edit that file, and then tests if
538        the open file was changed (through the file descriptor) will check the
539        backup file instead of the newly created file.  "crontab -e" is an
540        example, as are several |file-watcher| daemons like inotify.  In that
541        case you probably want to switch this option.
542
543        When a copy is made, the original file is truncated and then filled
544        with the new text.  This means that protection bits, owner and
545        symbolic links of the original file are unmodified.  The backup file,
546        however, is a new file, owned by the user who edited the file.  The
547        group of the backup is set to the group of the original file.  If this
548        fails, the protection bits for the group are made the same as for
549        others.
550
551        When the file is renamed, this is the other way around: The backup has
552        the same attributes of the original file, and the newly written file
553        is owned by the current user.  When the file was a (hard/symbolic)
554        link, the new file will not!  That's why the "auto" value doesn't
555        rename when the file is a link.  The owner and group of the newly
556        written file will be set to the same ones as the original file, but
557        the system may refuse to do this.  In that case the "auto" value will
558        again not rename the file.
559      ]=],
560      full_name = 'backupcopy',
561      list = 'onecomma',
562      scope = { 'global', 'buf' },
563      short_desc = N_("make backup as a copy, don't rename the file"),
564      type = 'string',
565      varname = 'p_bkc',
566      flags_varname = 'bkc_flags',
567    },
568    {
569      abbreviation = 'bdir',
570      defaults = '',
571      deny_duplicates = true,
572      desc = [=[
573        List of directories for the backup file, separated with commas.
574        - The backup file will be created in the first directory in the list
575          where this is possible.  If none of the directories exist Nvim will
576          attempt to create the last directory in the list.
577        - Empty means that no backup file will be created ('patchmode' is
578          impossible!).  Writing may fail because of this.
579        - A directory "." means to put the backup file in the same directory
580          as the edited file.
581        - A directory starting with "./" (or ".\" for MS-Windows) means to put
582          the backup file relative to where the edited file is.  The leading
583          "." is replaced with the path name of the edited file.
584          ("." inside a directory name has no special meaning).
585        - Spaces after the comma are ignored, other spaces are considered part
586          of the directory name.  To have a space at the start of a directory
587          name, precede it with a backslash.
588        - To include a comma in a directory name precede it with a backslash.
589        - A directory name may end in an '/'.
590        - For Unix and Win32, if a directory ends in two path separators "//",
591          the swap file name will be built from the complete path to the file
592          with all path separators changed to percent '%' signs.  This will
593          ensure file name uniqueness in the backup directory.
594          On Win32, it is also possible to end with "\\".  However, When a
595          separating comma is following, you must use "//", since "\\" will
596          include the comma in the file name.  Therefore it is recommended to
597          use '//', instead of '\\'.
598        - Environment variables are expanded |:set_env|.
599        - Careful with '\' characters, type one before a space, type two to
600          get one in the option (see |option-backslash|), for example: >vim
601            set bdir=c:\\tmp,\ dir\\,with\\,commas,\\\ dir\ with\ spaces
602        <
603        See also 'backup' and 'writebackup' options.
604        If you want to hide your backup files on Unix, consider this value: >vim
605        	set backupdir=./.backup,~/.backup,.,/tmp
606        <	You must create a ".backup" directory in each directory and in your
607        home directory for this to work properly.
608        The use of |:set+=| and |:set-=| is preferred when adding or removing
609        directories from the list.  This avoids problems when a future version
610        uses another default.
611      ]=],
612      expand = 'nodefault',
613      full_name = 'backupdir',
614      list = 'onecomma',
615      scope = { 'global' },
616      secure = true,
617      short_desc = N_('list of directories for the backup file'),
618      type = 'string',
619      varname = 'p_bdir',
620    },
621    {
622      abbreviation = 'bex',
623      validation_cb = 'validate_backupext_or_patchmode',
624      defaults = '~',
625      desc = [=[
626        String which is appended to a file name to make the name of the
627        backup file.  The default is quite unusual, because this avoids
628        accidentally overwriting existing files with a backup file.  You might
629        prefer using ".bak", but make sure that you don't have files with
630        ".bak" that you want to keep.
631        Only normal file name characters can be used; `/\*?[|<>` are illegal.
632
633        If you like to keep a lot of backups, you could use a BufWritePre
634        autocommand to change 'backupext' just before writing the file to
635        include a timestamp. >vim
636        	au BufWritePre * let &bex = '-' .. strftime("%Y%b%d%X") .. '~'
637        <	Use 'backupdir' to put the backup in a different directory.
638      ]=],
639      full_name = 'backupext',
640      normal_fname_chars = true,
641      scope = { 'global' },
642      short_desc = N_('extension used for the backup file'),
643      tags = { 'E589' },
644      type = 'string',
645      varname = 'p_bex',
646    },
647    {
648      abbreviation = 'bsk',
649      defaults = {
650        if_true = '',
651        doc = [["$TMPDIR/*,$TMP/*,$TEMP/*"
652        Unix: "/tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*"
653        Mac: "/private/tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*"]],
654        meta = '/tmp/*',
655      },
656      deny_duplicates = true,
657      desc = [=[
658        A list of file patterns.  When one of the patterns matches with the
659        name of the file which is written, no backup file is created.  Both
660        the specified file name and the full path name of the file are used.
661        The pattern is used like with |:autocmd|, see |autocmd-pattern|.
662        Watch out for special characters, see |option-backslash|.
663        When $TMPDIR, $TMP or $TEMP is not defined, it is not used for the
664        default value.  "/tmp/*" is only used for Unix.
665
666        WARNING: Not having a backup file means that when Vim fails to write
667        your buffer correctly and then, for whatever reason, Vim exits, you
668        lose both the original file and what you were writing.  Only disable
669        backups if you don't care about losing the file.
670
671        Note that environment variables are not expanded.  If you want to use
672        $HOME you must expand it explicitly, e.g.: >vim
673        	let &backupskip = escape(expand('$HOME'), '\') .. '/tmp/*'
674
675        <	Note that the default also makes sure that "crontab -e" works (when a
676        backup would be made by renaming the original file crontab won't see
677        the newly created file).  Also see 'backupcopy' and |crontab|.
678      ]=],
679      full_name = 'backupskip',
680      list = 'onecomma',
681      scope = { 'global' },
682      short_desc = N_('no backup for files that match these patterns'),
683      type = 'string',
684      varname = 'p_bsk',
685    },
686    {
687      abbreviation = 'bo',
688      validation_cb = 'validate_str_generic',
689      defaults = 'all',
690      schema = {
691        flags = {
692          'all',
693          'backspace',
694          'cursor',
695          'complete',
696          'copy',
697          'ctrlg',
698          'error',
699          'esc',
700          'ex',
701          'hangul',
702          'insertmode',
703          'lang',
704          'mess',
705          'showmatch',
706          'operator',
707          'register',
708          'shell',
709          'spell',
710          'term',
711          'wildmode',
712        },
713      },
714      deny_duplicates = true,
715      desc = [=[
716        Specifies for which events the bell will not be rung.  It is a comma-
717        separated list of items.  For each item that is present, the bell will
718        be silenced.  This is most useful to specify specific events in insert
719        mode to be silenced.
720        You can also make it flash by using 'visualbell'.
721
722        item	    meaning when present	~
723        all	    All events.
724        backspace   When hitting <BS> or <Del> and deleting results in an
725        	    error.
726        cursor	    Fail to move around using the cursor keys or
727        	    <PageUp>/<PageDown> in |Insert-mode|.
728        complete    Error occurred when using |i_CTRL-X_CTRL-K| or
729        	    |i_CTRL-X_CTRL-T|.
730        copy	    Cannot copy char from insert mode using |i_CTRL-Y| or
731        	    |i_CTRL-E|.
732        ctrlg	    Unknown Char after <C-G> in Insert mode.
733        error	    Other Error occurred (e.g. try to join last line)
734        	    (mostly used in |Normal-mode| or |Cmdline-mode|).
735        esc	    hitting <Esc> in |Normal-mode|.
736        hangul	    Ignored.
737        lang	    Calling the beep module for Lua/Mzscheme/TCL.
738        mess	    No output available for |g<|.
739        showmatch   Error occurred for 'showmatch' function.
740        operator    Empty region error |cpo-E|.
741        register    Unknown register after <C-R> in |Insert-mode|.
742        shell	    Bell from shell output |:!|.
743        spell	    Error happened on spell suggest.
744        term	    Bell from |:terminal| output.
745        wildmode    More matches in |cmdline-completion| available
746        	    (depends on the 'wildmode' setting).
747
748        This is most useful to fine tune when in Insert mode the bell should
749        be rung.  For Normal mode and Ex commands, the bell is often rung to
750        indicate that an error occurred.  It can be silenced by adding the
751        "error" keyword.
752      ]=],
753      full_name = 'belloff',
754      list = 'comma',
755      scope = { 'global' },
756      short_desc = N_('do not ring the bell for these reasons'),
757      type = 'string',
758      varname = 'p_bo',
759      flags_varname = 'bo_flags',
760    },
761    {
762      abbreviation = 'bin',
763      cb = 'did_set_binary',
764      defaults = false,
765      desc = [=[
766        This option should be set before editing a binary file.  You can also
767        use the |-b| Vim argument.  When this option is switched on a few
768        options will be changed (also when it already was on):
769        	'textwidth'  will be set to 0
770        	'wrapmargin' will be set to 0
771        	'modeline'   will be off
772        	'expandtab'  will be off
773        Also, 'fileformat' and 'fileformats' options will not be used, the
774        file is read and written like 'fileformat' was "unix" (a single <NL>
775        separates lines).
776        The 'fileencoding' and 'fileencodings' options will not be used, the
777        file is read without conversion.
778        NOTE: When you start editing a(nother) file while the 'bin' option is
779        on, settings from autocommands may change the settings again (e.g.,
780        'textwidth'), causing trouble when editing.  You might want to set
781        'bin' again when the file has been loaded.
782        The previous values of these options are remembered and restored when
783        'bin' is switched from on to off.  Each buffer has its own set of
784        saved option values.
785        To edit a file with 'binary' set you can use the |++bin| argument.
786        This avoids you have to do ":set bin", which would have effect for all
787        files you edit.
788        When writing a file the <EOL> for the last line is only written if
789        there was one in the original file (normally Vim appends an <EOL> to
790        the last line if there is none; this would make the file longer).  See
791        the 'endofline' option.
792      ]=],
793      full_name = 'binary',
794      redraw = { 'statuslines' },
795      scope = { 'buf' },
796      short_desc = N_('read/write/edit file in binary mode'),
797      type = 'boolean',
798      varname = 'p_bin',
799    },
800    {
801      cb = 'did_set_eof_eol_fixeol_bomb',
802      defaults = false,
803      desc = [=[
804        When writing a file and the following conditions are met, a BOM (Byte
805        Order Mark) is prepended to the file:
806        - this option is on
807        - the 'binary' option is off
808        - 'fileencoding' is "utf-8", "ucs-2", "ucs-4" or one of the little/big
809          endian variants.
810        Some applications use the BOM to recognize the encoding of the file.
811        Often used for UCS-2 files on MS-Windows.  For other applications it
812        causes trouble, for example: "cat file1 file2" makes the BOM of file2
813        appear halfway through the resulting file.  Gcc doesn't accept a BOM.
814        When Vim reads a file and 'fileencodings' starts with "ucs-bom", a
815        check for the presence of the BOM is done and 'bomb' set accordingly.
816        Unless 'binary' is set, it is removed from the first line, so that you
817        don't see it when editing.  When you don't change the options, the BOM
818        will be restored when writing the file.
819      ]=],
820      full_name = 'bomb',
821      no_mkrc = true,
822      redraw = { 'statuslines' },
823      scope = { 'buf' },
824      short_desc = N_('a Byte Order Mark to the file'),
825      type = 'boolean',
826      varname = 'p_bomb',
827    },
828    {
829      abbreviation = 'brk',
830      cb = 'did_set_breakat',
831      defaults = {
832        if_true = ' \t!@*-+;:,./?',
833        doc = '" ^I!@*-+;:,./?"',
834      },
835      desc = [=[
836        This option lets you choose which characters might cause a line
837        break if 'linebreak' is on.  Only works for ASCII characters.
838      ]=],
839      full_name = 'breakat',
840      list = 'flags',
841      redraw = { 'all_windows' },
842      scope = { 'global' },
843      short_desc = N_('characters that may cause a line break'),
844      type = 'string',
845      varname = 'p_breakat',
846    },
847    {
848      abbreviation = 'bri',
849      defaults = false,
850      desc = [=[
851        Every wrapped line will continue visually indented (same amount of
852        space as the beginning of that line), thus preserving horizontal
853        blocks of text.
854      ]=],
855      full_name = 'breakindent',
856      redraw = { 'current_window' },
857      scope = { 'win' },
858      short_desc = N_('wrapped line repeats indent'),
859      type = 'boolean',
860    },
861    {
862      abbreviation = 'briopt',
863      cb = 'did_set_breakindentopt',
864      defaults = '',
865      schema = {
866        dict = {
867          { 'shift', 'snum' },
868          { 'min', 'num' },
869          'sbr', -- unsigned number.
870          { 'list', 'snum' },
871          { 'column', 'snum' },
872        },
873      },
874      deny_duplicates = true,
875      desc = [=[
876        Settings for 'breakindent'.  It can consist of the following optional
877        items and must be separated by a comma:
878        	min:{n}	    Minimum text width that will be kept after
879        		    applying 'breakindent', even if the resulting
880        		    text should normally be narrower.  This prevents
881        		    text indented almost to the right window border
882        		    occupying lots of vertical space when broken.
883        		    (default: 20)
884        	shift:{n}   After applying 'breakindent', the wrapped line's
885        		    beginning will be shifted by the given number of
886        		    characters.  It permits dynamic French paragraph
887        		    indentation (negative) or emphasizing the line
888        		    continuation (positive).
889        		    (default: 0)
890        	sbr	    Display the 'showbreak' value before applying the
891        		    additional indent.
892        		    (default: off)
893        	list:{n}    Adds an additional indent for lines that match a
894        		    numbered or bulleted list (using the
895        		    'formatlistpat' setting).
896        		    (default: 0)
897        	list:-1	    Uses the width of a match with 'formatlistpat' for
898        		    indentation.
899        	column:{n}  Indent at column {n}.  Will overrule the other
900        		    sub-options.  Note: an additional indent may be
901        		    added for the 'showbreak' setting.
902        		    (default: off)
903      ]=],
904      full_name = 'breakindentopt',
905      list = 'onecomma',
906      redraw = { 'current_buffer' },
907      scope = { 'win' },
908      short_desc = N_("settings for 'breakindent'"),
909      type = 'string', -- OptKeyDict_briopt
910    },
911    {
912      abbreviation = 'bsdir',
913      defaults = {
914        if_true = '',
915        doc = '"last"',
916      },
917      desc = [=[
918        Which directory to use for the file browser:
919           last		Use same directory as with last file browser, where a
920        		file was opened or saved.
921           buffer	Use the directory of the related buffer.
922           current	Use the current directory.
923           {path}	Use the specified directory
924      ]=],
925      full_name = 'browsedir',
926      scope = { 'global' },
927      short_desc = N_('which directory to start browsing in'),
928      type = 'string',
929      immutable = true,
930    },
931    {
932      abbreviation = 'bh',
933      validation_cb = 'validate_str_generic',
934      defaults = '',
935      schema = {
936        enum = { '', 'hide', 'unload', 'delete', 'wipe' },
937      },
938      desc = [=[
939        This option specifies what happens when a buffer is no longer
940        displayed in a window:
941          <empty>	follow the global 'hidden' option
942          hide		hide the buffer (don't unload it), even if 'hidden' is
943        		not set
944          unload	unload the buffer, even if 'hidden' is set; the
945        		|:hide| command will also unload the buffer
946          delete	delete the buffer from the buffer list, even if
947        		'hidden' is set; the |:hide| command will also delete
948        		the buffer, making it behave like |:bdelete|
949          wipe		wipe the buffer from the buffer list, even if
950        		'hidden' is set; the |:hide| command will also wipe
951        		out the buffer, making it behave like |:bwipeout|
952
953        CAREFUL: when "unload", "delete" or "wipe" is used changes in a buffer
954        are lost without a warning.  Also, these values may break autocommands
955        that switch between buffers temporarily.
956        This option is used together with 'buftype' and 'swapfile' to specify
957        special kinds of buffers.   See |special-buffers|.
958      ]=],
959      full_name = 'bufhidden',
960      noglob = true,
961      scope = { 'buf' },
962      short_desc = N_('what to do when buffer is no longer in window'),
963      type = 'string',
964      varname = 'p_bh',
965    },
966    {
967      abbreviation = 'bl',
968      cb = 'did_set_buflisted',
969      defaults = true,
970      desc = [=[
971        When this option is set, the buffer shows up in the buffer list.  If
972        it is reset it is not used for ":bnext", "ls", the Buffers menu, etc.
973        This option is reset by Vim for buffers that are only used to remember
974        a file name or marks.  Vim sets it when starting to edit a buffer.
975        But not when moving to a buffer with ":buffer".
976      ]=],
977      full_name = 'buflisted',
978      noglob = true,
979      scope = { 'buf' },
980      short_desc = N_('whether the buffer shows up in the buffer list'),
981      tags = { 'E85' },
982      type = 'boolean',
983      varname = 'p_bl',
984    },
985    {
986      abbreviation = 'bt',
987      cb = 'did_set_buftype',
988      validation_cb = 'validate_buftype',
989      defaults = '',
990      schema = {
991        enum = {
992          '',
993          'acwrite',
994          'help',
995          'nofile',
996          'nowrite',
997          'quickfix',
998          'terminal',
999          'prompt',
1000        },
1001      },
1002      desc = [=[
1003        The value of this option specifies the type of a buffer:
1004          (empty)	Normal buffer.
1005          acwrite	Buffer will always be written with |BufWriteCmd|.
1006          help		Help buffer (do not set this manually).
1007          nofile	Buffer is not a file, will not be written.
1008          nowrite	Buffer represents a filepath (such as a directory),
1009        		but will not be written.
1010          prompt	Buffer where only the last section can be edited, for
1011        		use by plugins. |prompt-buffer|
1012          quickfix	List of errors |:cwindow| or locations |:lwindow|
1013          terminal	|terminal-emulator| buffer
1014
1015        This option is used together with 'bufhidden' and 'swapfile' to
1016        specify special kinds of buffers.   See |special-buffers|.
1017        Also see |win_gettype()|, which returns the type of the window.
1018
1019        Be careful with changing this option, it can have many side effects!
1020        One such effect is that Vim will not check the timestamp of the file,
1021        if the file is changed by another program this will not be noticed.
1022
1023        A "quickfix" buffer is only used for the error list and the location
1024        list.  This value is set by the |:cwindow| and |:lwindow| commands and
1025        you are not supposed to change it.
1026
1027        "nofile" and "nowrite" buffers are similar:
1028        both:		The buffer is not to be written to disk, ":w" doesn't
1029        		work (":w filename" does work though).
1030        both:		The buffer is never considered to be 'modified'.
1031        		There is no warning when the changes will be lost, for
1032        		example when you quit Vim.
1033        both:		A swap file is only created when using too much memory
1034        		(when 'swapfile' has been reset there is never a swap
1035        		file).
1036        nofile only:	The buffer name is fixed, it is not handled like a
1037        		file name.  It is not modified in response to a |:cd|
1038        		command.
1039        both:		When using ":e bufname" and already editing "bufname"
1040        		the buffer is made empty and autocommands are
1041        		triggered as usual for |:edit|.
1042        						*E676*
1043        "acwrite" implies that the buffer name is not related to a file, like
1044        "nofile", but it will be written.  Thus, in contrast to "nofile" and
1045        "nowrite", ":w" does work and a modified buffer can't be abandoned
1046        without saving.  For writing there must be matching |BufWriteCmd|,
1047        |FileWriteCmd| or |FileAppendCmd| autocommands.
1048      ]=],
1049      full_name = 'buftype',
1050      noglob = true,
1051      scope = { 'buf' },
1052      tags = { 'E382' },
1053      short_desc = N_('special type of buffer'),
1054      type = 'string',
1055      varname = 'p_bt',
1056    },
1057    {
1058      defaults = 0,
1059      desc = [=[
1060        Sets a buffer "busy" status. Indicated in the default statusline.
1061        When busy status is larger then 0 busy flag is shown in statusline.
1062        The semantics of "busy" are arbitrary, typically decided by the plugin that owns the buffer.
1063      ]=],
1064      full_name = 'busy',
1065      redraw = { 'statuslines' },
1066      noglob = true,
1067      scope = { 'buf' },
1068      short_desc = N_('buffer is busy'),
1069      type = 'number',
1070      varname = 'p_busy',
1071    },
1072    {
1073      abbreviation = 'cmp',
1074      validation_cb = 'validate_str_generic',
1075      defaults = 'internal,keepascii',
1076      schema = {
1077        flags = { 'internal', 'keepascii' },
1078      },
1079      deny_duplicates = true,
1080      desc = [=[
1081        Specifies details about changing the case of letters.  It may contain
1082        these words, separated by a comma:
1083        internal	Use internal case mapping functions, the current
1084        		locale does not change the case mapping. When
1085        		"internal" is omitted, the towupper() and towlower()
1086        		system library functions are used when available.
1087        keepascii	For the ASCII characters (0x00 to 0x7f) use the US
1088        		case mapping, the current locale is not effective.
1089        		This probably only matters for Turkish.
1090      ]=],
1091      full_name = 'casemap',
1092      list = 'onecomma',
1093      scope = { 'global' },
1094      short_desc = N_('specifies how case of letters is changed'),
1095      type = 'string',
1096      varname = 'p_cmp',
1097      flags_varname = 'cmp_flags',
1098    },
1099    {
1100      abbreviation = 'cdh',
1101      defaults = {
1102        condition = 'MSWIN',
1103        if_false = true,
1104        if_true = false,
1105        doc = [[on on Unix, off on Windows]],
1106      },
1107      desc = [=[
1108        When on, |:cd|, |:tcd|, |:lcd| and |:bcd| without an argument changes the
1109        current working directory to the |$HOME| directory like in Unix.
1110        When off, those commands just print the current directory name.
1111      ]=],
1112      full_name = 'cdhome',
1113      scope = { 'global' },
1114      secure = true,
1115      short_desc = N_(':cd without argument goes to the home directory'),
1116      type = 'boolean',
1117      varname = 'p_cdh',
1118    },
1119    {
1120      abbreviation = 'cd',
1121      defaults = {
1122        if_true = ',,',
1123        doc = 'equivalent to $CDPATH or ",,"',
1124      },
1125      deny_duplicates = true,
1126      desc = [=[
1127        This is a list of directories which will be searched when using the
1128        |:cd|, |:tcd|, |:lcd| and |:bcd| commands, provided that the directory being
1129        searched for has a relative path, not an absolute part starting with
1130        "/", "./" or "../", the 'cdpath' option is not used then.
1131        The 'cdpath' option's value has the same form and semantics as
1132        'path'.  Also see |file-searching|.
1133        The default value is taken from $CDPATH, with a "," prepended to look
1134        in the current directory first.
1135        If the default value taken from $CDPATH is not what you want, include
1136        a modified version of the following command in your vimrc file to
1137        override it: >vim
1138          let &cdpath = ',' .. substitute(substitute($CDPATH, '[, ]', '\\\0', 'g'), ':', ',', 'g')
1139        <	Environment variables are expanded |:set_env|.
1140        (parts of 'cdpath' can be passed to the shell to expand file names).
1141      ]=],
1142      expand = true,
1143      full_name = 'cdpath',
1144      list = 'comma',
1145      scope = { 'global' },
1146      secure = true,
1147      short_desc = N_('list of directories searched with ":cd"'),
1148      tags = { 'E344', 'E346' },
1149      type = 'string',
1150      varname = 'p_cdpath',
1151    },
1152    {
1153      cb = 'did_set_cedit',
1154      defaults = {
1155        if_true = macros('CTRL_F_STR', 'string'),
1156        doc = 'CTRL-F',
1157      },
1158      desc = [=[
1159        The key used in Command-line Mode to open the command-line window.
1160        Only non-printable keys are allowed.
1161        The key can be specified as a single character, but it is difficult to
1162        type.  The preferred way is to use |key-notation| (e.g. <Up>, <C-F>) or
1163        a letter preceded with a caret (e.g. `^F` is CTRL-F).  Examples: >vim
1164        	set cedit=^Y
1165        	set cedit=<Esc>
1166        <	|Nvi| also has this option, but it only uses the first character.
1167        See |cmdwin|.
1168      ]=],
1169      full_name = 'cedit',
1170      scope = { 'global' },
1171      short_desc = N_('used to open the command-line window'),
1172      type = 'string',
1173      varname = 'p_cedit',
1174    },
1175    {
1176      defaults = 0,
1177      desc = [=[
1178        |channel| connected to the buffer, or 0 if no channel is connected.
1179        In a |:terminal| buffer this is the terminal channel.
1180        Read-only.
1181      ]=],
1182      full_name = 'channel',
1183      no_mkrc = true,
1184      nodefault = true,
1185      scope = { 'buf' },
1186      short_desc = N_('Channel connected to the buffer'),
1187      type = 'number',
1188      varname = 'p_channel',
1189    },
1190    {
1191      abbreviation = 'ccv',
1192      defaults = '',
1193      desc = [=[
1194        An expression that is used for character encoding conversion.  It is
1195        evaluated when a file that is to be read or has been written has a
1196        different encoding from what is desired.
1197        'charconvert' is not used when the internal iconv() function is
1198        supported and is able to do the conversion.  Using iconv() is
1199        preferred, because it is much faster.
1200        'charconvert' is not used when reading stdin |--|, because there is no
1201        file to convert from.  You will have to save the text in a file first.
1202        The expression must return zero, false or an empty string for success,
1203        non-zero or true for failure.
1204        See |encoding-names| for possible encoding names.
1205        Additionally, names given in 'fileencodings' and 'fileencoding' are
1206        used.
1207        Conversion between "latin1", "unicode", "ucs-2", "ucs-4" and "utf-8"
1208        is done internally by Vim, 'charconvert' is not used for this.
1209        Also used for Unicode conversion.
1210        Example: >lua
1211        	vim.o.charconvert = function()
1212        	  vim.fn.system(('recode %s..%s <%s >%s'):format(
1213        	    vim.v.charconvert_from, vim.v.charconvert_to,
1214        	    vim.v.fname_in, vim.v.fname_out))
1215        	  return vim.v.shell_error
1216        	end
1217        <	The related Vim variables are:
1218        	v:charconvert_from	name of the current encoding
1219        	v:charconvert_to	name of the desired encoding
1220        	v:fname_in		name of the input file
1221        	v:fname_out		name of the output file
1222        Note that v:fname_in and v:fname_out will never be the same.
1223
1224        The advantage of using a function call without arguments is that it is
1225        faster, see |expr-option-function|.
1226
1227        If the 'charconvert' expression starts with s: or |<SID>|, then it is
1228        replaced with the script ID (|local-function|).  Example: >vim
1229        	set charconvert=s:MyConvert()
1230        	set charconvert=<SID>SomeConvert()
1231        <	Otherwise the expression is evaluated in the context of the script
1232        where the option was set, thus script-local items are available.
1233      ]=],
1234      full_name = 'charconvert',
1235      scope = { 'global' },
1236      secure = true,
1237      short_desc = N_('expression for character encoding conversion'),
1238      type = 'expr',
1239      tags = { 'E202', 'E214', 'E513' },
1240      varname = 'p_ccv',
1241    },
1242    {
1243      abbreviation = 'chi',
1244      cb = 'did_set_xhistory',
1245      defaults = 10,
1246      desc = [=[
1247        Number of quickfix lists that should be remembered for the quickfix
1248        stack.  Must be between 1 and 100.  If the option is set to a value
1249        that is lower than the amount of entries in the quickfix list stack,
1250        entries will be removed starting from the oldest one.  If the current
1251        quickfix list was removed, then the quickfix list at top of the stack
1252        (the most recently created) will be used in its place.  For additional
1253        info, see |quickfix-stack|.
1254      ]=],
1255      full_name = 'chistory',
1256      scope = { 'global' },
1257      short_desc = N_('number of quickfix lists stored in history'),
1258      tags = { 'E1542', 'E1543' },
1259      type = 'number',
1260      varname = 'p_chi',
1261    },
1262    {
1263      abbreviation = 'cin',
1264      defaults = false,
1265      desc = [=[
1266        Enables automatic C program indenting.  See 'cinkeys' to set the keys
1267        that trigger reindenting in insert mode and 'cinoptions' to set your
1268        preferred indent style.
1269        If 'indentexpr' is not empty, it overrules 'cindent'.
1270        If 'lisp' is not on and both 'indentexpr' and 'equalprg' are empty,
1271        the "=" operator indents using this algorithm rather than calling an
1272        external program.
1273        See |C-indenting|.
1274        When you don't like the way 'cindent' works, try the 'smartindent'
1275        option or 'indentexpr'.
1276      ]=],
1277      full_name = 'cindent',
1278      scope = { 'buf' },
1279      short_desc = N_('do C program indenting'),
1280      type = 'boolean',
1281      varname = 'p_cin',
1282    },
1283    {
1284      abbreviation = 'cink',
1285      defaults = '0{,0},0),0],:,0#,!^F,o,O,e',
1286      deny_duplicates = true,
1287      desc = [=[
1288        A list of keys that, when typed in Insert mode, cause reindenting of
1289        the current line.  Only used if 'cindent' is on and 'indentexpr' is
1290        empty.
1291        For the format of this option see |cinkeys-format|.
1292        See |C-indenting|.
1293      ]=],
1294      full_name = 'cinkeys',
1295      list = 'onecomma',
1296      scope = { 'buf' },
1297      short_desc = N_("keys that trigger indent when 'cindent' is set"),
1298      type = 'string',
1299      varname = 'p_cink',
1300    },
1301    {
1302      abbreviation = 'cino',
1303      cb = 'did_set_cinoptions',
1304      defaults = '',
1305      deny_duplicates = true,
1306      desc = [=[
1307        The 'cinoptions' affect the way 'cindent' reindents lines in a C
1308        program.  See |cinoptions-values| for the values of this option, and
1309        |C-indenting| for info on C indenting in general.
1310      ]=],
1311      full_name = 'cinoptions',
1312      list = 'onecomma',
1313      scope = { 'buf' },
1314      short_desc = N_("how to do indenting when 'cindent' is set"),
1315      type = 'string',
1316      varname = 'p_cino',
1317    },
1318    {
1319      abbreviation = 'cinsd',
1320      defaults = 'public,protected,private',
1321      deny_duplicates = true,
1322      desc = [=[
1323        Keywords that are interpreted as a C++ scope declaration by |cino-g|.
1324        Useful e.g. for working with the Qt framework that defines additional
1325        scope declarations "signals", "public slots" and "private slots": >vim
1326        	set cinscopedecls+=signals,public\ slots,private\ slots
1327        <
1328      ]=],
1329      full_name = 'cinscopedecls',
1330      list = 'onecomma',
1331      scope = { 'buf' },
1332      short_desc = N_("words that are recognized by 'cino-g'"),
1333      type = 'string',
1334      varname = 'p_cinsd',
1335    },
1336    {
1337      abbreviation = 'cinw',
1338      defaults = 'if,else,while,do,for,switch',
1339      deny_duplicates = true,
1340      desc = [=[
1341        These keywords start an extra indent in the next line when
1342        'smartindent' or 'cindent' is set.  For 'cindent' this is only done at
1343        an appropriate place (inside {}).
1344        Note that 'ignorecase' isn't used for 'cinwords'.  If case doesn't
1345        matter, include the keyword both the uppercase and lowercase:
1346        "if,If,IF".
1347      ]=],
1348      full_name = 'cinwords',
1349      list = 'onecomma',
1350      scope = { 'buf' },
1351      short_desc = N_("words where 'si' and 'cin' add an indent"),
1352      type = 'string',
1353      varname = 'p_cinw',
1354    },
1355    {
1356      abbreviation = 'cb',
1357      validation_cb = 'validate_str_generic',
1358      defaults = '',
1359      schema = {
1360        flags = { 'unnamed', 'unnamedplus' },
1361      },
1362      desc = [=[
1363        This option is a list of comma-separated names.
1364        These names are recognized:
1365
1366        					*clipboard-unnamed*
1367        unnamed		When included, Vim will use the clipboard register "*"
1368        		for all yank, delete, change and put operations which
1369        		would normally go to the unnamed register.  When a
1370        		register is explicitly specified, it will always be
1371        		used regardless of whether "unnamed" is in 'clipboard'
1372        		or not.  The clipboard register can always be
1373        		explicitly accessed using the "* notation.  Also see
1374        		|clipboard|.
1375
1376        					*clipboard-unnamedplus*
1377        unnamedplus	A variant of the "unnamed" flag which uses the
1378        		clipboard register "+" (|quoteplus|) instead of
1379        		register "*" for all yank, delete, change and put
1380        		operations which would normally go to the unnamed
1381        		register.  When "unnamed" is also included to the
1382        		option, yank and delete operations (but not put)
1383        		will additionally copy the text into register
1384        		"*". See |clipboard|.
1385      ]=],
1386      deny_duplicates = true,
1387      full_name = 'clipboard',
1388      list = 'onecomma',
1389      scope = { 'global' },
1390      short_desc = N_('use the clipboard as the unnamed register'),
1391      type = 'string',
1392      varname = 'p_cb',
1393      flags_varname = 'cb_flags',
1394    },
1395    {
1396      abbreviation = 'ch',
1397      cb = 'did_set_cmdheight',
1398      defaults = 1,
1399      desc = [=[
1400        Number of screen lines to use for the command-line.  Helps avoiding
1401        |hit-enter| prompts.
1402        The value of this option is stored with the tabpage, so that each
1403        tabpage can have a different value.
1404
1405        When 'cmdheight' is zero, there is no command-line unless it is being
1406        used.  The command-line will cover the last line of the screen when
1407        shown.
1408
1409        WARNING: `cmdheight=0` is EXPERIMENTAL. Works better with |ui2| enabled.
1410      ]=],
1411      full_name = 'cmdheight',
1412      redraw = { 'all_windows' },
1413      scope = { 'global', 'tab' },
1414      short_desc = N_('number of lines to use for the command-line'),
1415      type = 'number',
1416      varname = 'p_ch',
1417    },
1418    {
1419      abbreviation = 'cwh',
1420      defaults = 7,
1421      desc = [=[
1422        Number of screen lines to use for the command-line window. |cmdwin|
1423      ]=],
1424      full_name = 'cmdwinheight',
1425      scope = { 'global' },
1426      short_desc = N_('height of the command-line window'),
1427      type = 'number',
1428      varname = 'p_cwh',
1429    },
1430    {
1431      abbreviation = 'cc',
1432      cb = 'did_set_colorcolumn',
1433      validation_cb = 'validate_colorcolumn',
1434      defaults = '',
1435      deny_duplicates = true,
1436      desc = [=[
1437        'colorcolumn' is a comma-separated list of screen columns that are
1438        highlighted with ColorColumn |hl-ColorColumn|.  Useful to align
1439        text.  Will make screen redrawing slower.
1440        The screen column can be an absolute number, or a number preceded with
1441        '+' or '-', which is added to or subtracted from 'textwidth'. >vim
1442
1443        	set cc=+1	  " highlight column after 'textwidth'
1444        	set cc=+1,+2,+3  " highlight three columns after 'textwidth'
1445        	hi ColorColumn ctermbg=lightgrey guibg=lightgrey
1446        <
1447        When 'textwidth' is zero then the items with '-' and '+' are not used.
1448        A maximum of 256 columns are highlighted.
1449      ]=],
1450      full_name = 'colorcolumn',
1451      list = 'onecomma',
1452      redraw = { 'current_window', 'highlight_only' },
1453      scope = { 'win' },
1454      short_desc = N_('columns to highlight'),
1455      type = 'string',
1456    },
1457    {
1458      abbreviation = 'co',
1459      cb = 'did_set_lines_or_columns',
1460      defaults = {
1461        if_true = macros('DFLT_COLS', 'number'),
1462        doc = '80 or terminal width',
1463      },
1464      desc = [=[
1465        Number of columns of the screen.  Normally this is set by the terminal
1466        initialization and does not have to be set by hand.
1467        When Vim is running in the GUI or in a resizable window, setting this
1468        option will cause the window size to be changed.  When you only want
1469        to use the size for the GUI, put the command in your |ginit.vim| file.
1470        When you set this option and Vim is unable to change the physical
1471        number of columns of the display, the display may be messed up.  For
1472        the GUI it is always possible and Vim limits the number of columns to
1473        what fits on the screen.  You can use this command to get the widest
1474        window possible: >vim
1475        	set columns=9999
1476        <	Minimum value is 12, maximum value is 10000.
1477      ]=],
1478      full_name = 'columns',
1479      no_mkrc = true,
1480      scope = { 'global' },
1481      short_desc = N_('number of columns in the display'),
1482      tags = { 'E594' },
1483      type = 'number',
1484      varname = 'p_columns',
1485    },
1486    {
1487      abbreviation = 'com',
1488      validation_cb = 'validate_comments',
1489      defaults = 's1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-,fb:•',
1490      deny_duplicates = true,
1491      desc = [=[
1492        A comma-separated list of strings that can start a comment line.  See
1493        |format-comments|.  See |option-backslash| about using backslashes to
1494        insert a space.
1495      ]=],
1496      full_name = 'comments',
1497      list = 'onecomma',
1498      scope = { 'buf' },
1499      short_desc = N_('patterns that can start a comment line'),
1500      tags = { 'E524', 'E525' },
1501      type = 'string',
1502      varname = 'p_com',
1503    },
1504    {
1505      abbreviation = 'cms',
1506      validation_cb = 'validate_commentstring',
1507      defaults = '',
1508      desc = [=[
1509        A template for a comment.  The "%s" in the value is replaced with the
1510        comment text, and should be padded with a space when possible.
1511        Used for |commenting| and to add markers for folding, see |fold-marker|.
1512      ]=],
1513      full_name = 'commentstring',
1514      scope = { 'buf' },
1515      short_desc = N_('template for comments; used for fold marker'),
1516      tags = { 'E537' },
1517      type = 'string',
1518      varname = 'p_cms',
1519    },
1520    {
1521      abbreviation = 'cp',
1522      defaults = false,
1523      full_name = 'compatible',
1524      scope = { 'global' },
1525      short_desc = N_('Deprecated'),
1526      type = 'boolean',
1527      immutable = true,
1528    },
1529    {
1530      abbreviation = 'cpt',
1531      cb = 'did_set_complete',
1532      validation_cb = 'validate_complete',
1533      defaults = '.,w,b,u,t',
1534      schema = {
1535        set = { '.', 'w', 'b', 'u', 'k', 'kspell', 's', 'i', 'd', ']', 't', 'U', 'f', 'F', 'o' },
1536      },
1537      deny_duplicates = true,
1538      desc = [=[
1539        This option controls how completion |ins-completion| behaves when
1540        using CTRL-P, CTRL-N, or |ins-autocompletion|.  It is also used for
1541        whole-line completion |i_CTRL-X_CTRL-L|.  It indicates the type of
1542        completion and the places to scan.  It is a comma-separated list of
1543        flags:
1544        .	scan the current buffer ('wrapscan' is ignored)
1545        w	scan buffers from other windows
1546        b	scan other loaded buffers that are in the buffer list
1547        u	scan the unloaded buffers that are in the buffer list
1548        U	scan the buffers that are not in the buffer list
1549        k	scan the files given with the 'dictionary' option
1550        kspell  use the currently active spell checking |spell|
1551        k{dict}	scan the file {dict}.  Several "k" flags can be given,
1552        	patterns are valid too.  For example: >vim
1553        		set cpt=k/usr/dict/*,k~/spanish
1554        <	s	scan the files given with the 'thesaurus' option
1555        s{tsr}	scan the file {tsr}.  Several "s" flags can be given, patterns
1556        	are valid too.
1557        i	scan current and included files
1558        d	scan current and included files for defined name or macro
1559        	|i_CTRL-X_CTRL-D|
1560        ]	tag completion
1561        t	same as "]"
1562        f	scan the buffer names (as opposed to buffer contents)
1563        F{func}	call the function {func}.  Multiple "F" flags may be
1564        	specified.  Refer to |complete-functions| for details on how
1565        	the function is invoked and what it should return.  The value
1566        	can be the name of a function or a |Funcref|.  For |Funcref|
1567        	values, spaces must be escaped with a backslash ('\'), and
1568        	commas with double backslashes ('\\') (see |option-backslash|).
1569        	Unlike other sources, functions can provide completions
1570        	starting from a non-keyword character before the cursor, and
1571        	their start position for replacing text may differ from other
1572        	sources.  If the Dict returned by the {func} includes
1573        	`{"refresh": "always"}`, the function will be invoked again
1574        	whenever the leading text changes.
1575        	If generating matches is potentially slow, call
1576        	|complete_check()| periodically to keep Vim responsive.  This
1577        	is especially important for |ins-autocompletion|.
1578        F	equivalent to using "F{func}", where the function is taken
1579        	from the 'completefunc' option.
1580        o	equivalent to using "F{func}", where the function is taken
1581        	from the 'omnifunc' option.
1582
1583        Unloaded buffers are not loaded, thus their autocmds |:autocmd| are
1584        not executed, this may lead to unexpected completions from some files
1585        (gzipped files for example).  Unloaded buffers are not scanned for
1586        whole-line completion.
1587
1588        CTRL-N, CTRL-P, and |ins-autocompletion| can be used for any
1589        'iskeyword'-based completion (dictionary |i_CTRL-X_CTRL-K|, included
1590        patterns |i_CTRL-X_CTRL-I|, tags |i_CTRL-X_CTRL-]|, and normal
1591        expansions).  With the "F" and "o" flags in 'complete', non-keywords
1592        can also be completed.
1593
1594        An optional match limit can be specified for a completion source by
1595        appending a caret ("^") followed by a {count} to the source flag.
1596        For example: ".^9,w,u,t^5" limits matches from the current buffer to 9
1597        and from tags to 5.  Other sources remain unlimited.
1598        Note: The match limit takes effect only during forward completion
1599        (CTRL-N) and is ignored during backward completion (CTRL-P).
1600
1601        This option cannot be set in a modeline when 'modelineexpr' is off.
1602      ]=],
1603      full_name = 'complete',
1604      modelineexpr = true,
1605      list = 'onecomma',
1606      scope = { 'buf' },
1607      short_desc = N_('specify how Insert mode completion works'),
1608      tags = { 'E535' },
1609      type = 'string',
1610      varname = 'p_cpt',
1611    },
1612    {
1613      abbreviation = 'cfu',
1614      defaults = '',
1615      desc = [=[
1616        This option specifies a function to be used for Insert mode completion
1617        with CTRL-X CTRL-U. |i_CTRL-X_CTRL-U|
1618        See |complete-functions| for an explanation of how the function is
1619        invoked and what it should return.  The value can be the name of a
1620        function, a |lambda| or a |Funcref|.  See |option-value-function| for
1621        more information.
1622      ]=],
1623      full_name = 'completefunc',
1624      scope = { 'buf' },
1625      secure = true,
1626      short_desc = N_('function to be used for Insert mode completion'),
1627      type = 'func',
1628      varname = 'p_cfu',
1629    },
1630    {
1631      abbreviation = 'cia',
1632      cb = 'did_set_completeitemalign',
1633      defaults = 'abbr,kind,menu',
1634      deny_duplicates = true,
1635      desc = [=[
1636        A comma-separated list of strings that controls the alignment and
1637        display order of items in the popup menu during Insert mode
1638        completion.  The supported values are "abbr", "kind", and "menu".
1639        These values allow customizing how |complete-items| are shown in the
1640        popup menu.  Note: must always contain those three values in any
1641        order.
1642      ]=],
1643      full_name = 'completeitemalign',
1644      list = 'onecomma',
1645      scope = { 'global' },
1646      short_desc = N_('Insert mode completion item align order'),
1647      type = 'string',
1648      varname = 'p_cia',
1649    },
1650    {
1651      abbreviation = 'cot',
1652      cb = 'did_set_completeopt',
1653      validation_cb = 'validate_str_generic',
1654      defaults = 'menu,popup',
1655      schema = {
1656        flags = {
1657          'fuzzy',
1658          'longest',
1659          'menu',
1660          'menuone',
1661          'nearest',
1662          'noinsert',
1663          'noselect',
1664          'nosort',
1665          'popup',
1666          'preinsert',
1667          'preselect',
1668          'preview',
1669        },
1670      },
1671      deny_duplicates = true,
1672      desc = [=[
1673        A comma-separated list of options for Insert mode completion
1674        |ins-completion|.  The supported values are:
1675
1676           fuzzy    Enable |fuzzy-matching| for completion candidates.  This
1677        	    allows for more flexible and intuitive matching, where
1678        	    characters can be skipped and matches can be found even
1679        	    if the exact sequence is not typed (disabled for thesaurus
1680        	    completion |compl-thesaurus|).
1681
1682           longest
1683        	    When 'autocomplete' is not active, only the longest common
1684        	    prefix of the matches is inserted (disabled for thesaurus
1685        	    completion |compl-thesaurus|).  If the popup menu is
1686        	    displayed, you can use CTRL-L to add more characters.
1687        	    Whether case is ignored depends on the type of completion.
1688        	    For buffer text the 'ignorecase' option applies.
1689
1690        	    When 'autocomplete' is active and no completion item is
1691        	    selected, the longest common prefix of the matches is
1692        	    inserted after the cursor.  The prefix is taken either
1693        	    from all displayed items or only from items in the current
1694        	    buffer.  The inserted text is highlighted with
1695        	    |hl-PreInsert|, and the cursor position does not change
1696        	    (similar to `"preinsert"`).  Press CTRL-Y to accept.
1697        	    See also |preinserted()|.
1698
1699           menu	    Use a popup menu to show the possible completions.  The
1700        	    menu is only shown when there is more than one match.
1701        	    |ins-completion-menu|
1702
1703           menuone  Use the popup menu also when there is only one match.
1704        	    Useful when there is additional information about the
1705        	    match, e.g., what file it comes from.
1706
1707           nearest  Matches are listed based on their proximity to the cursor
1708        	    position, unlike the default behavior, which only
1709        	    considers proximity for matches appearing below the
1710        	    cursor.  This applies only to matches from the current
1711        	    buffer.  No effect if "fuzzy" is present.
1712
1713           noinsert Do not insert any text for a match until the user selects
1714        	    a match from the menu.  Only works in combination with
1715        	    "menu" or "menuone". No effect if "longest" is present.
1716
1717           noselect Same as "noinsert", except that no menu item is
1718        	    pre-selected.  Takes precedence over "noinsert". Enabled
1719        	    automatically when 'autocomplete' is on, unless
1720        	    "preinsert" is also enabled.
1721
1722           nosort   Disable sorting of completion candidates based on fuzzy
1723        	    scores when "fuzzy" is enabled.  Candidates will appear
1724        	    in their original order.
1725
1726           popup    Show extra information about the currently selected
1727        	    completion in a popup window.  Only works in combination
1728        	    with "menu" or "menuone".  Overrides "preview".
1729
1730           preinsert
1731        	    Inserts the text of the first completion candidate beyond
1732        	    the current leader, highlighted with |hl-PreInsert|.
1733        	    The cursor does not move.
1734        	    Requires "fuzzy" to be unset, and either "menuone" in
1735        	    'completeopt' or 'autocomplete' enabled.  When
1736        	    'autocomplete' is enabled, this does not work if
1737        	    'ignorecase' is set without 'infercase'.
1738        	    See also |preinserted()|.
1739
1740           preselect
1741        	    When one of |complete-items| has its "preselect" field set
1742        	    (e.g., as indicated by an LSP server), select the first
1743        	    such item in the |popupmenu-completion|. Takes precedence
1744        	    over "noselect".
1745
1746        	    Unlike the implicit selection behavior (when "noselect" is
1747        	    not set), this preserves the original sort order and
1748        	    navigates to the preselect item rather than always
1749        	    selecting the first item.
1750
1751           preview  Show extra information about the currently selected
1752        	    completion in the preview window.  Only works in
1753        	    combination with "menu" or "menuone".
1754
1755        Only "fuzzy", "longest", "popup", "preinsert", "preselect" and
1756        "preview" have an effect when 'autocomplete' is enabled.
1757
1758        This option does not apply to |cmdline-completion|.  See 'wildoptions'
1759        for that.
1760      ]=],
1761      full_name = 'completeopt',
1762      list = 'onecomma',
1763      scope = { 'global', 'buf' },
1764      short_desc = N_('options for Insert mode completion'),
1765      type = 'string',
1766      varname = 'p_cot',
1767      flags_varname = 'cot_flags',
1768    },
1769    {
1770      abbreviation = 'csl',
1771      cb = 'did_set_completeslash',
1772      validation_cb = 'validate_str_generic',
1773      defaults = '',
1774      schema = {
1775        enum = { '', 'slash', 'backslash' },
1776      },
1777      desc = [=[
1778        		only modifiable in MS-Windows
1779        When this option is set it overrules 'shellslash' for completion:
1780        - When this option is set to "slash", a forward slash is used for path
1781          completion in insert mode.  This is useful when editing HTML tag, or
1782          Makefile with 'noshellslash' on MS-Windows.
1783        - When this option is set to "backslash", backslash is used.  This is
1784          useful when editing a batch file with 'shellslash' set on
1785          MS-Windows.
1786        - When this option is empty, same character is used as for
1787          'shellslash'.
1788        For Insert mode completion the buffer-local value is used.  For
1789        command line completion the global value is used.
1790      ]=],
1791      enable_if = 'BACKSLASH_IN_FILENAME',
1792      full_name = 'completeslash',
1793      scope = { 'buf' },
1794      type = 'string',
1795      varname = 'p_csl',
1796    },
1797    {
1798      abbreviation = 'cto',
1799      defaults = 0,
1800      desc = [=[
1801        Like 'autocompletetimeout', but applies to |i_CTRL-N| and |i_CTRL-P|
1802        completion.  Value of 0 disables the timeout; positive values allowed.
1803      ]=],
1804      full_name = 'completetimeout',
1805      scope = { 'global' },
1806      short_desc = N_('initial decay timeout for CTRL-N and CTRL-P'),
1807      type = 'number',
1808      varname = 'p_cto',
1809    },
1810    {
1811      abbreviation = 'cocu',
1812      validation_cb = 'validate_concealcursor',
1813      defaults = '',
1814      desc = [=[
1815        Sets the modes in which text in the cursor line can also be concealed.
1816        When the current mode is listed then concealing happens just like in
1817        other lines.
1818          n		Normal mode
1819          v		Visual mode
1820          i		Insert mode
1821          c		Command line editing, for 'incsearch'
1822
1823        'v' applies to all lines in the Visual area, not only the cursor.
1824        A useful value is "nc".  This is used in help files.  So long as you
1825        are moving around text is concealed, but when starting to insert text
1826        or selecting a Visual area the concealed text is displayed, so that
1827        you can see what you are doing.
1828        Keep in mind that the cursor position is not always where it's
1829        displayed.  E.g., when moving vertically it may change column.
1830      ]=],
1831      expand_cb = 'expand_set_concealcursor',
1832      full_name = 'concealcursor',
1833      list = 'flags',
1834      redraw = { 'current_window' },
1835      scope = { 'win' },
1836      short_desc = N_('whether concealable text is hidden in cursor line'),
1837      type = 'string',
1838    },
1839    {
1840      abbreviation = 'cole',
1841      defaults = 0,
1842      desc = [=[
1843        Determine how text with the "conceal" syntax attribute |:syn-conceal|
1844        is shown:
1845
1846        Value		Effect ~
1847        0		Text is shown normally
1848        1		Each block of concealed text is replaced with one
1849        		character.  If the syntax item does not have a custom
1850        		replacement character defined (see |:syn-cchar|) the
1851        		character defined in 'listchars' is used.
1852        		It is highlighted with the "Conceal" highlight group.
1853        2		Concealed text is completely hidden unless it has a
1854        		custom replacement character defined (see
1855        		|:syn-cchar|).
1856        3		Concealed text is completely hidden.
1857
1858        Note: in the cursor line concealed text is not hidden, so that you can
1859        edit and copy the text.  This can be changed with the 'concealcursor'
1860        option.
1861      ]=],
1862      full_name = 'conceallevel',
1863      redraw = { 'current_window' },
1864      scope = { 'win' },
1865      short_desc = N_('whether concealable text is shown or hidden'),
1866      type = 'number',
1867    },
1868    {
1869      abbreviation = 'cf',
1870      defaults = false,
1871      desc = [=[
1872        When 'confirm' is on, certain operations that would normally
1873        fail because of unsaved changes to a buffer, e.g. ":q" and ":e",
1874        instead raise a dialog asking if you wish to save the current
1875        file(s).  You can still use a ! to unconditionally |abandon| a buffer.
1876        If 'confirm' is off you can still activate confirmation for one
1877        command only (this is most useful in mappings) with the |:confirm|
1878        command.
1879        Also see the |confirm()| function and the 'v' flag in 'guioptions'.
1880      ]=],
1881      full_name = 'confirm',
1882      scope = { 'global' },
1883      short_desc = N_('ask what to do about unsaved/read-only files'),
1884      type = 'boolean',
1885      varname = 'p_confirm',
1886    },
1887    {
1888      abbreviation = 'ci',
1889      defaults = false,
1890      desc = [=[
1891        Copy the structure of the existing lines indent when autoindenting a
1892        new line.  Normally the new indent is reconstructed by a series of
1893        tabs followed by spaces as required (unless 'expandtab' is enabled,
1894        in which case only spaces are used).  Enabling this option makes the
1895        new line copy whatever characters were used for indenting on the
1896        existing line.  'expandtab' has no effect on these characters, a Tab
1897        remains a Tab.  If the new indent is greater than on the existing
1898        line, the remaining space is filled in the normal manner.
1899        See 'preserveindent'.
1900      ]=],
1901      full_name = 'copyindent',
1902      scope = { 'buf' },
1903      short_desc = N_("make 'autoindent' use existing indent structure"),
1904      type = 'boolean',
1905      varname = 'p_ci',
1906    },
1907    {
1908      abbreviation = 'cpo',
1909      validation_cb = 'validate_cpoptions',
1910      defaults = macros('CPO_VIM', 'string'),
1911      desc = [=[
1912        A sequence of single character flags.  When a character is present
1913        this indicates Vi-compatible behavior.  This is used for things where
1914        not being Vi-compatible is mostly or sometimes preferred.
1915        'cpoptions' stands for "compatible-options".
1916        Commas can be added for readability.
1917        To avoid problems with flags that are added in the future, use the
1918        "+=" and "-=" feature of ":set" |add-option-flags|.
1919
1920            contains	behavior	~
1921        							*cpo-a*
1922        	a	When included, a ":read" command with a file name
1923        		argument will set the alternate file name for the
1924        		current window.
1925        							*cpo-A*
1926        	A	When included, a ":write" command with a file name
1927        		argument will set the alternate file name for the
1928        		current window.
1929        							*cpo-b*
1930        	b	"\|" in a ":map" command is recognized as the end of
1931        		the map command.  The '\' is included in the mapping,
1932        		the text after the '|' is interpreted as the next
1933        		command.  Use a CTRL-V instead of a backslash to
1934        		include the '|' in the mapping.  Applies to all
1935        		mapping, abbreviation, menu and autocmd commands.
1936        		See also |map_bar|.
1937        							*cpo-B*
1938        	B	A backslash has no special meaning in mappings,
1939        		abbreviations, user commands and the "to" part of the
1940        		menu commands.  Remove this flag to be able to use a
1941        		backslash like a CTRL-V.  For example, the command
1942        		":map X \\<Esc>" results in X being mapped to:
1943        			'B' included:	"\^["	 (^[ is a real <Esc>)
1944        			'B' excluded:	"<Esc>"  (5 characters)
1945        							*cpo-c*
1946        	c	Searching continues at the end of any match at the
1947        		cursor position, but not further than the start of the
1948        		next line.  When not present searching continues
1949        		one character from the cursor position.  With 'c'
1950        		"abababababab" only gets three matches when repeating
1951        		"/abab", without 'c' there are five matches.
1952        							*cpo-C*
1953        	C	Do not concatenate sourced lines that start with a
1954        		backslash.  See |line-continuation|.
1955        							*cpo-d*
1956        	d	Using "./" in the 'tags' option doesn't mean to use
1957        		the tags file relative to the current file, but the
1958        		tags file in the current directory.
1959        							*cpo-D*
1960        	D	Can't use CTRL-K to enter a digraph after Normal mode
1961        		commands with a character argument, like |r|, |f| and
1962        		|t|.
1963        							*cpo-e*
1964        	e	When executing a register with ":@r", always add a
1965        		<CR> to the last line, also when the register is not
1966        		linewise.  If this flag is not present, the register
1967        		is not linewise and the last line does not end in a
1968        		<CR>, then the last line is put on the command-line
1969        		and can be edited before hitting <CR>.
1970        							*cpo-E*
1971        	E	It is an error when using "y", "d", "c", "g~", "gu" or
1972        		"gU" on an Empty region.  The operators only work when
1973        		at least one character is to be operated on.  Example:
1974        		This makes "y0" fail in the first column.
1975        							*cpo-f*
1976        	f	When included, a ":read" command with a file name
1977        		argument will set the file name for the current
1978        		buffer, if the current buffer doesn't have a file name
1979        		yet.
1980        							*cpo-F*
1981        	F	When included, a ":write" command with a file name
1982        		argument will set the file name for the current
1983        		buffer, if the current buffer doesn't have a file name
1984        		yet.  Also see |cpo-P|.
1985        							*cpo-i*
1986        	i	When included, interrupting the reading of a file will
1987        		leave it modified.
1988        							*cpo-I*
1989        	I	When moving the cursor up or down just after inserting
1990        		indent for 'autoindent', do not delete the indent.
1991        							*cpo-J*
1992        	J	A |sentence| has to be followed by two spaces after
1993        		the '.', '!' or '?'.  A <Tab> is not recognized as
1994        		white space.
1995        							*cpo-K*
1996        	K	Don't wait for a key code to complete when it is
1997        		halfway through a mapping.  This breaks mapping
1998        		<F1><F1> when only part of the second <F1> has been
1999        		read.  It enables cancelling the mapping by typing
2000        		<F1><Esc>.
2001        							*cpo-l*
2002        	l	Backslash in a [] range in a search pattern is taken
2003        		literally, only "\]", "\^", "\-" and "\\" are special.
2004        		See |/[]|
2005        		   'l' included: "/[ \t]"  finds <Space>, '\' and 't'
2006        		   'l' excluded: "/[ \t]"  finds <Space> and <Tab>
2007        							*cpo-L*
2008        	L	When the 'list' option is set, 'wrapmargin',
2009        		'textwidth', 'softtabstop' and Virtual Replace mode
2010        		(see |gR|) count a <Tab> as two characters, instead of
2011        		the normal behavior of a <Tab>.
2012        							*cpo-m*
2013        	m	When included, a showmatch will always wait half a
2014        		second.  When not included, a showmatch will wait half
2015        		a second or until a character is typed.  'showmatch'
2016        							*cpo-M*
2017        	M	When excluded, "%" matching will take backslashes into
2018        		account.  Thus in "( \( )" and "\( ( \)" the outer
2019        		parenthesis match.  When included "%" ignores
2020        		backslashes, which is Vi compatible.
2021        							*cpo-n*
2022        	n	When included, the column used for 'number' and
2023        		'relativenumber' will also be used for text of wrapped
2024        		lines.
2025        							*cpo-o*
2026        	o	Line offset to search command is not remembered for
2027        		next search.
2028        							*cpo-O*
2029        	O	Don't complain if a file is being overwritten, even
2030        		when it didn't exist when editing it.  This is a
2031        		protection against a file unexpectedly created by
2032        		someone else.  Vi didn't complain about this.
2033        							*cpo-P*
2034        	P	When included, a ":write" command that appends to a
2035        		file will set the file name for the current buffer, if
2036        		the current buffer doesn't have a file name yet and
2037        		the 'F' flag is also included |cpo-F|.
2038        							*cpo-q*
2039        	q	When joining multiple lines leave the cursor at the
2040        		position where it would be when joining two lines.
2041        							*cpo-r*
2042        	r	Redo ("." command) uses "/" to repeat a search
2043        		command, instead of the actually used search string.
2044        							*cpo-R*
2045        	R	Remove marks from filtered lines.  Without this flag
2046        		marks are kept like |:keepmarks| was used.
2047        							*cpo-s*
2048        	s	Set buffer options when entering the buffer for the
2049        		first time.  This is like it is in Vim version 3.0.
2050        		And it is the default.  If not present the options are
2051        		set when the buffer is created.
2052        							*cpo-S*
2053        	S	Set buffer options always when entering a buffer
2054        		(except 'readonly', 'fileformat', 'filetype' and
2055        		'syntax').  This is the (most) Vi compatible setting.
2056        		The options are set to the values in the current
2057        		buffer.  When you change an option and go to another
2058        		buffer, the value is copied.  Effectively makes the
2059        		buffer options global to all buffers.
2060
2061        		's'    'S'     copy buffer options
2062        		no     no      when buffer created
2063        		yes    no      when buffer first entered (default)
2064        		 X     yes     each time when buffer entered (vi comp.)
2065        							*cpo-t*
2066        	t	Search pattern for the tag command is remembered for
2067        		"n" command.  Otherwise Vim only puts the pattern in
2068        		the history for search pattern, but doesn't change the
2069        		last used search pattern.
2070        							*cpo-u*
2071        	u	Undo is Vi compatible.  See |undo-two-ways|.
2072        							*cpo-v*
2073        	v	Backspaced characters remain visible on the screen in
2074        		Insert mode.  Without this flag the characters are
2075        		erased from the screen right away.  With this flag the
2076        		screen newly typed text overwrites backspaced
2077        		characters.
2078        							*cpo-W*
2079        	W	Don't overwrite a readonly file.  When omitted, ":w!"
2080        		overwrites a readonly file, if possible.
2081        							*cpo-x*
2082        	x	<Esc> on the command-line executes the command-line.
2083        		The default in Vim is to abandon the command-line,
2084        		because <Esc> normally aborts a command.  |c_<Esc>|
2085        							*cpo-X*
2086        	X	When using a count with "R" the replaced text is
2087        		deleted only once.  Also when repeating "R" with "."
2088        		and a count.
2089        							*cpo-y*
2090        	y	A yank command can be redone with ".".  Think twice if
2091        		you really want to use this, it may break some
2092        		plugins, since most people expect "." to only repeat a
2093        		change.
2094        							*cpo-Z*
2095        	Z	When using "w!" while the 'readonly' option is set,
2096        		don't reset 'readonly'.
2097        							*cpo-!*
2098        	!	When redoing a filter command, use the last used
2099        		external command, whatever it was.  Otherwise the last
2100        		used -filter- command is used.
2101        							*cpo-$*
2102        	$	When making a change to one line, don't redisplay the
2103        		line, but put a '$' at the end of the changed text.
2104        		The changed text will be overwritten when you type the
2105        		new text.  The line is redisplayed if you type any
2106        		command that moves the cursor from the insertion
2107        		point.
2108        							*cpo-%*
2109        	%	Vi-compatible matching is done for the "%" command.
2110        		Does not recognize "#if", "#endif", etc.
2111        		Does not recognize "/*" and "*/".
2112        		Parens inside single and double quotes are also
2113        		counted, causing a string that contains a paren to
2114        		disturb the matching.  For example, in a line like
2115        		"if (strcmp("foo(", s))" the first paren does not
2116        		match the last one.  When this flag is not included,
2117        		parens inside single and double quotes are treated
2118        		specially.  When matching a paren outside of quotes,
2119        		everything inside quotes is ignored.  When matching a
2120        		paren inside quotes, it will find the matching one (if
2121        		there is one).  This works very well for C programs.
2122        		This flag is also used for other features, such as
2123        		C-indenting.
2124        							*cpo-+*
2125        	+	When included, a ":write file" command will reset the
2126        		'modified' flag of the buffer, even though the buffer
2127        		itself may still be different from its file.
2128        							*cpo->*
2129        	>	When appending to a register, put a line break before
2130        		the appended text.
2131        							*cpo-;*
2132        	;	When using |,| or |;| to repeat the last |t| search
2133        		and the cursor is right in front of the searched
2134        		character, the cursor won't move.  When not included,
2135        		the cursor would skip over it and jump to the
2136        		following occurrence.
2137        							*cpo-~*
2138        	~	When included, don't resolve symbolic links when
2139        		changing directory with |:cd|, |:tcd|, |:lcd|, or |:bcd|.
2140        		This preserves the symbolic link path in buffer names
2141        		and when displaying the current directory.  When
2142        		excluded (default), symbolic links are resolved to
2143        		their target paths.
2144        							*cpo-_*
2145        	_	When using |cw| on a word, do not include the
2146        		whitespace following the word in the motion.
2147      ]=],
2148      expand_cb = 'expand_set_cpoptions',
2149      -- Generates kCpo* flag constants. CPO_VI/CPO_VIM stay hand-defined in option_vars.h.
2150      schema = {
2151        flagchars = {
2152          altread = 'a', -- ":read" sets alternate file name
2153          altwrite = 'A', -- ":write" sets alternate file name
2154          bar = 'b', -- "\|" ends a mapping
2155          bslash = 'B', -- backslash in mapping is not special
2156          search = 'c',
2157          concat = 'C', -- Don't concatenate sourced lines
2158          dottag = 'd', -- "./tags" in 'tags' is in current dir
2159          digraph = 'D', -- No digraph after "r", "f", etc.
2160          execbuf = 'e',
2161          emptyregion = 'E', -- operating on empty region is an error
2162          fnamer = 'f', -- set file name for ":r file"
2163          fnamew = 'F', -- set file name for ":w file"
2164          intmod = 'i', -- interrupt a read makes buffer modified
2165          indent = 'I', -- remove auto-indent more often
2166          endofsent = 'J', -- need two spaces to detect end of sentence
2167          koffset = 'K', -- don't wait for key code in mappings
2168          literal = 'l', -- take char after backslash in [] literal
2169          listwm = 'L', -- 'list' changes wrapmargin
2170          showmatch = 'm',
2171          matchbsl = 'M', -- "%" ignores use of backslashes
2172          numcol = 'n', -- 'number' column also used for text
2173          lineoff = 'o',
2174          overnew = 'O', -- silently overwrite new file
2175          fnameapp = 'P', -- set file name for ":w >>file"
2176          joincol = 'q', -- with "3J" use column after first join
2177          redo = 'r',
2178          remmark = 'R', -- remove marks when filtering
2179          bufopt = 's',
2180          bufoptglob = 'S',
2181          tagpat = 't', -- tag pattern is used for "n"
2182          undo = 'u', -- "u" undoes itself
2183          backspace = 'v', -- "v" keep deleted text
2184          fwrite = 'W', -- "w!" doesn't overwrite readonly files
2185          esc = 'x',
2186          replcnt = 'X', -- "R" with a count only deletes chars once
2187          yank = 'y',
2188          keepro = 'Z', -- don't reset 'readonly' on ":w!"
2189          dollar = '$',
2190          filter = '!',
2191          match = '%',
2192          plus = '+', -- ":write file" resets 'modified'
2193          regappend = '>', -- insert NL when appending to a register
2194          scolon = ';', -- using "," and ";" will skip over char if cursor would not move
2195          nosymlinks = '~', -- don't resolve symlinks when changing directory
2196          changew = '_', -- "cw" special-case
2197        },
2198      },
2199      full_name = 'cpoptions',
2200      list = 'flags',
2201      redraw = { 'all_windows' },
2202      scope = { 'global' },
2203      short_desc = N_('flags for Vi-compatible behavior'),
2204      tags = { 'cpo' },
2205      type = 'string',
2206      varname = 'p_cpo',
2207    },
2208    {
2209      abbreviation = 'crb',
2210      defaults = false,
2211      desc = [=[
2212        When this option is set, as the cursor in the current
2213        window moves other cursorbound windows (windows that also have
2214        this option set) move their cursors to the corresponding line and
2215        column.  This option is useful for viewing the
2216        differences between two versions of a file (see 'diff'); in diff mode,
2217        inserted and deleted lines (though not characters within a line) are
2218        taken into account.
2219      ]=],
2220      full_name = 'cursorbind',
2221      scope = { 'win' },
2222      short_desc = N_('move cursor in window as it moves in other windows'),
2223      type = 'boolean',
2224    },
2225    {
2226      abbreviation = 'cuc',
2227      defaults = false,
2228      desc = [=[
2229        Highlight the screen column of the cursor with CursorColumn
2230        |hl-CursorColumn|.  Useful to align text.  Will make screen redrawing
2231        slower.
2232        If you only want the highlighting in the current window you can use
2233        these autocommands: >vim
2234        	au WinLeave * set nocursorline nocursorcolumn
2235        	au WinEnter * set cursorline cursorcolumn
2236        <
2237      ]=],
2238      full_name = 'cursorcolumn',
2239      redraw = { 'current_window', 'highlight_only' },
2240      scope = { 'win' },
2241      short_desc = N_('highlight the screen column of the cursor'),
2242      type = 'boolean',
2243    },
2244    {
2245      abbreviation = 'cul',
2246      defaults = false,
2247      desc = [=[
2248        Highlighting used for the line the cursor is on:
2249
2250        CursorLine		the text line |hl-CursorLine|
2251        CursorLineFold		the fold column |hl-CursorLineFold|
2252        CursorLineSign		the sign column |hl-CursorLineSign|
2253        CursorLineNr		the line number, when 'cursorlineopt' contains
2254        			"number" |hl-CursorLineNr|
2255
2256        Useful to easily spot the cursor.  Will make screen redrawing slower.
2257        When Visual mode is active the highlighting isn't used to make it
2258        easier to see the selected text.
2259      ]=],
2260      full_name = 'cursorline',
2261      redraw = { 'current_window', 'highlight_only' },
2262      scope = { 'win' },
2263      short_desc = N_('highlight the screen line of the cursor'),
2264      type = 'boolean',
2265    },
2266    {
2267      abbreviation = 'culopt',
2268      cb = 'did_set_cursorlineopt',
2269      defaults = 'both',
2270      -- Keep this in sync with fill_culopt_flags(). "both" is an alias (line+number), not its own bit.
2271      schema = {
2272        flags = {
2273          { 'line', 0x01 },
2274          { 'screenline', 0x02 },
2275          { 'number', 0x04 },
2276        },
2277        enum = { 'both' },
2278      },
2279      deny_duplicates = true,
2280      desc = [=[
2281        Comma-separated list of settings for how 'cursorline' is displayed.
2282        Valid values:
2283        "line"		Highlight the text line of the cursor with
2284        		CursorLine |hl-CursorLine|.
2285        "screenline"	Highlight only the screen line of the cursor with
2286        		CursorLine |hl-CursorLine|.
2287        "number"	Highlight the line number of the cursor with
2288        		CursorLineNr |hl-CursorLineNr|.
2289
2290        Special value:
2291        "both"		Alias for the values "line,number".
2292
2293        "line" and "screenline" cannot be used together.
2294      ]=],
2295      full_name = 'cursorlineopt',
2296      list = 'onecomma',
2297      redraw = { 'current_window', 'highlight_only' },
2298      scope = { 'win' },
2299      short_desc = N_("settings for 'cursorline'"),
2300      type = 'string',
2301    },
2302    {
2303      validation_cb = 'validate_str_generic',
2304      defaults = '',
2305      schema = {
2306        set = { 'msg', 'throw', 'beep' },
2307      },
2308      desc = [=[
2309        These values can be used:
2310        msg	Error messages that would otherwise be omitted will be given
2311        	anyway.
2312        throw	Error messages that would otherwise be omitted will be given
2313        	anyway and also throw an exception and set |v:errmsg|.
2314        beep	A message will be given when otherwise only a beep would be
2315        	produced.
2316        The values can be combined, separated by a comma.
2317        "msg" and "throw" are useful for debugging 'foldexpr', 'formatexpr' or
2318        'indentexpr'.
2319      ]=],
2320      -- TODO(lewis6991): bug, values currently cannot be combined
2321      full_name = 'debug',
2322      list = 'comma',
2323      scope = { 'global' },
2324      short_desc = N_('to "msg" to see all error messages'),
2325      type = 'string',
2326      varname = 'p_debug',
2327    },
2328    {
2329      abbreviation = 'def',
2330      defaults = '',
2331      desc = [=[
2332        Pattern to be used to find a macro definition.  It is a search
2333        pattern, just like for the "/" command.  This option is used for the
2334        commands like "[i" and "[d" |include-search|.  The 'isident' option is
2335        used to recognize the defined name after the match: >
2336        	{match with 'define'}{non-ID chars}{defined name}{non-ID char}
2337        <	See |option-backslash| about inserting backslashes to include a space
2338        or backslash.
2339        For C++ this value would be useful, to include const type declarations: >
2340        	^\(#\s*define\|[a-z]*\s*const\s*[a-z]*\)
2341        <	You can also use "\ze" just before the name and continue the pattern
2342        to check what is following.  E.g. for Javascript, if a function is
2343        defined with `func_name = function(args)`: >
2344        	^\s*\ze\i\+\s*=\s*function(
2345        <	If the function is defined with `func_name : function() {...`: >
2346                ^\s*\ze\i\+\s*[:]\s*(*function\s*(
2347        <	When using the ":set" command, you need to double the backslashes!
2348        To avoid that use `:let` with a single quote string: >vim
2349        	let &l:define = '^\s*\ze\k\+\s*=\s*function('
2350        <
2351      ]=],
2352      full_name = 'define',
2353      scope = { 'global', 'buf' },
2354      short_desc = N_('pattern to be used to find a macro definition'),
2355      type = 'string',
2356      varname = 'p_def',
2357    },
2358    {
2359      abbreviation = 'deco',
2360      defaults = false,
2361      desc = [=[
2362        If editing Unicode and this option is set, backspace and Normal mode
2363        "x" delete each combining character on its own.  When it is off (the
2364        default) the character along with its combining characters are
2365        deleted.
2366        Note: When 'delcombine' is set "xx" may work differently from "2x"!
2367
2368        This is useful for Arabic, Hebrew and many other languages where one
2369        may have combining characters overtop of base characters, and want
2370        to remove only the combining ones.
2371      ]=],
2372      full_name = 'delcombine',
2373      scope = { 'global' },
2374      short_desc = N_('delete combining characters on their own'),
2375      type = 'boolean',
2376      varname = 'p_deco',
2377    },
2378    {
2379      abbreviation = 'dict',
2380      defaults = '',
2381      deny_duplicates = true,
2382      desc = [=[
2383        List of file names, separated by commas, that are used to lookup words
2384        for keyword completion commands |i_CTRL-X_CTRL-K|.  Each file should
2385        contain a list of words.  This can be one word per line, or several
2386        words per line, separated by non-keyword characters (white space is
2387        preferred).  Maximum line length is 510 bytes.
2388
2389        When this option is empty or an entry "spell" is present, and spell
2390        checking is enabled, words in the word lists for the currently active
2391        'spelllang' are used.  See |spell|.
2392
2393        To include a comma in a file name precede it with a backslash.  Spaces
2394        after a comma are ignored, otherwise spaces are included in the file
2395        name.  See |option-backslash| about using backslashes.
2396        Environment variables are expanded |:set_env|.
2397        This has nothing to do with the |Dictionary| variable type.
2398        Where to find a list of words?
2399        - BSD/macOS include the "/usr/share/dict/words" file.
2400        - Try "apt install spell" to get the "/usr/share/dict/words" file on
2401          apt-managed systems (Debian/Ubuntu).
2402        The use of |:set+=| and |:set-=| is preferred when adding or removing
2403        directories from the list.  This avoids problems when a future version
2404        uses another default.
2405        Backticks cannot be used in this option for security reasons.
2406      ]=],
2407      expand = true,
2408      full_name = 'dictionary',
2409      list = 'onecomma',
2410      normal_dname_chars = true,
2411      scope = { 'global', 'buf' },
2412      short_desc = N_('list of file names used for keyword completion'),
2413      type = 'string',
2414      varname = 'p_dict',
2415    },
2416    {
2417      cb = 'did_set_diff',
2418      defaults = false,
2419      desc = [=[
2420        Join the current window in the group of windows that shows differences
2421        between files.  See |diff-mode|.
2422      ]=],
2423      full_name = 'diff',
2424      noglob = true,
2425      redraw = { 'current_window' },
2426      scope = { 'win' },
2427      short_desc = N_('diff mode for the current window'),
2428      type = 'boolean',
2429    },
2430    {
2431      abbreviation = 'dia',
2432      cb = 'did_set_diffanchors',
2433      defaults = '',
2434      desc = [=[
2435        List of {address} in each buffer, separated by commas, that are
2436        considered anchors when used for diffing.  It's valid to specify "$+1"
2437        for 1 past the last line.  "%" cannot be used for this option.  There
2438        can be at most 20 anchors set for each buffer.
2439
2440        Each anchor line splits the buffer (the split happens above the
2441        anchor), with each part being diff'ed separately before the final
2442        result is joined.  When more than one {address} are provided, the
2443        anchors will be sorted internally by line number.  If using buffer
2444        local options, each buffer should have the same number of anchors
2445        (extra anchors will be ignored).  This option is only used when
2446        'diffopt' has "anchor" set.  See |diff-anchors| for more details and
2447        examples.
2448        							*E1550*
2449        If some of the {address} do not resolve to a line in each buffer (e.g.
2450        a pattern search that does not match anything), none of the anchors
2451        will be used.
2452        							*E1562*
2453        Diff anchors can only be used when there are no hidden diff buffers.
2454      ]=],
2455      full_name = 'diffanchors',
2456      list = 'onecomma',
2457      scope = { 'global', 'buf' },
2458      short_desc = N_('list of addresses for anchoring a diff'),
2459      type = 'string',
2460      varname = 'p_dia',
2461    },
2462    {
2463      abbreviation = 'dex',
2464      defaults = '',
2465      desc = [=[
2466        Expression which is evaluated to obtain a diff file (either ed-style
2467        or unified-style) from two versions of a file.  See |diff-diffexpr|.
2468      ]=],
2469      full_name = 'diffexpr',
2470      redraw = { 'curswant' },
2471      scope = { 'global' },
2472      secure = true,
2473      short_desc = N_('expression used to obtain a diff file'),
2474      type = 'expr',
2475      varname = 'p_dex',
2476    },
2477    {
2478      abbreviation = 'dip',
2479      cb = 'did_set_diffopt',
2480      defaults = 'internal,filler,closeoff,indent-heuristic,inline:char,linematch:40',
2481      schema = {
2482        dict = {
2483          'filler',
2484          'anchor',
2485          { 'context', 'num' },
2486          'iblank',
2487          'icase',
2488          'iwhite',
2489          'iwhiteall',
2490          'iwhiteeol',
2491          'horizontal',
2492          'vertical',
2493          'closeoff',
2494          'hiddenoff',
2495          { 'foldcolumn', 'num' },
2496          'followwrap',
2497          'internal',
2498          'indent-heuristic',
2499          { 'algorithm', 'enum', { values = { 'myers', 'minimal', 'patience', 'histogram' } } },
2500          { 'inline', 'enum', { values = { 'none', 'simple', 'char', 'word' } } },
2501          { 'linematch', 'num' },
2502        },
2503      },
2504      deny_duplicates = true,
2505      desc = [=[
2506        Option settings for diff mode.  It can consist of the following items.
2507        All are optional.  Items must be separated by a comma.
2508
2509        	algorithm:{text} Use the specified diff algorithm with the
2510        			internal diff engine.  Currently supported
2511        			algorithms are:
2512        			myers      the default algorithm
2513        			minimal    spend extra time to generate the
2514        				   smallest possible diff
2515        			patience   patience diff algorithm
2516        			histogram  histogram diff algorithm
2517
2518        	anchor		Anchor specific lines in each buffer to be
2519        			aligned with each other if 'diffanchors' is
2520        			set.  See |diff-anchors|.
2521
2522        	closeoff	When a window is closed where 'diff' is set
2523        			and there is only one window remaining in the
2524        			same tabpage with 'diff' set, execute
2525        			`:diffoff` in that window.  This undoes a
2526        			`:diffsplit` command.
2527
2528        	context:{n}	Use a context of {n} lines between a change
2529        			and a fold that contains unchanged lines.
2530        			When omitted a context of six lines is used.
2531        			When using zero the context is actually one,
2532        			since folds require a line in between, also
2533        			for a deleted line.  Set it to a very large
2534        			value (999999) to disable folding completely.
2535        			See |fold-diff|.
2536
2537        	filler		Show filler lines, to keep the text
2538        			synchronized with a window that has inserted
2539        			lines at the same position.  Mostly useful
2540        			when windows are side-by-side and 'scrollbind'
2541        			is set.
2542
2543        	foldcolumn:{n}	Set the 'foldcolumn' option to {n} when
2544        			starting diff mode.  Without this 2 is used.
2545
2546        	followwrap	Follow the 'wrap' option and leave as it is.
2547
2548        	horizontal	Start diff mode with horizontal splits (unless
2549        			explicitly specified otherwise).
2550
2551        	hiddenoff	Do not use diff mode for a buffer when it
2552        			becomes hidden.
2553
2554        	iblank		Ignore changes where lines are all blank.
2555        			Adds the "-B" flag to the "diff" command if
2556        			'diffexpr' is empty.  Check the documentation
2557        			of the "diff" command for what this does
2558        			exactly.
2559        			NOTE: the diff windows will get out of sync,
2560        			because no differences between blank lines are
2561        			taken into account.
2562
2563        	icase		Ignore changes in case of text.  "a" and "A"
2564        			are considered the same.  Adds the "-i" flag
2565        			to the "diff" command if 'diffexpr' is empty.
2566
2567        	indent-heuristic
2568        			Use the indent heuristic for the internal
2569        			diff library.
2570
2571        	inline:{text}	Highlight inline differences within a change.
2572        			See |view-diffs|.  Supported values are:
2573
2574        			none    Do not perform inline highlighting.
2575        			simple  Highlight from first different
2576        				character to the last one in each
2577        				line.  This is the default if no
2578        				`inline:` value is set.
2579        			char    Use internal diff to perform a
2580        				character-wise diff and highlight the
2581        				difference.
2582        			word    Use internal diff to perform a
2583        				|word|-wise diff and highlight the
2584        				difference.  Non-alphanumeric
2585        				multi-byte characters such as emoji
2586        				and CJK characters are considered
2587        				individual words.  Small gaps of
2588        				non-word characters (5 bytes or less)
2589        				between changes are merged into a
2590        				single highlight block.
2591
2592        	internal	Use the internal diff library.  This is
2593        			ignored when 'diffexpr' is set.  *E960*
2594        			When running out of memory when writing a
2595        			buffer or the diff is larger than 1 GB this
2596        			item will be ignored for diffs involving that
2597        			buffer.  Set the 'verbose' option to see when
2598        			this happens.
2599
2600        	iwhite		Ignore changes in amount of white space.  Adds
2601        			the "-b" flag to the "diff" command if
2602        			'diffexpr' is empty.  Check the documentation
2603        			of the "diff" command for what this does
2604        			exactly.  It should ignore adding trailing
2605        			white space, but not leading white space.
2606
2607        	iwhiteall	Ignore all white space changes.  Adds
2608        			the "-w" flag to the "diff" command if
2609        			'diffexpr' is empty.  Check the documentation
2610        			of the "diff" command for what this does
2611        			exactly.
2612
2613        	iwhiteeol	Ignore white space changes at end of line.
2614        			Adds the "-Z" flag to the "diff" command if
2615        			'diffexpr' is empty.  Check the documentation
2616        			of the "diff" command for what this does
2617        			exactly.
2618
2619        	linematch:{n}   Align and mark changes between the most
2620        			similar lines between the buffers.  When the
2621        			total number of lines in the diff hunk exceeds
2622        			{n}, the lines will not be aligned because for
2623        			very large diff hunks there will be a
2624        			noticeable lag.  A reasonable setting is
2625        			"linematch:60", as this will enable alignment
2626        			for a 2 buffer diff hunk of 30 lines each, or
2627        			a 3 buffer diff hunk of 20 lines each.
2628        			Implicitly sets "filler" when this is set.
2629
2630        	vertical	Start diff mode with vertical splits (unless
2631        			explicitly specified otherwise).
2632
2633        Examples: >vim
2634        	set diffopt=internal,filler,context:4
2635        	set diffopt=
2636        	set diffopt=internal,filler,foldcolumn:3
2637        	set diffopt-=internal  " do NOT use the internal diff parser
2638        <
2639      ]=],
2640      expand_cb = 'expand_set_diffopt',
2641      full_name = 'diffopt',
2642      list = 'onecommacolon',
2643      redraw = { 'current_window' },
2644      scope = { 'global' },
2645      short_desc = N_('options for using diff mode'),
2646      type = 'string', -- OptKeyDict_dip
2647      varname = 'p_dip',
2648    },
2649    {
2650      abbreviation = 'dg',
2651      defaults = false,
2652      desc = [=[
2653        Enable the entering of digraphs in Insert mode with {char1} <BS>
2654        {char2}.  See |digraphs|.
2655      ]=],
2656      full_name = 'digraph',
2657      scope = { 'global' },
2658      short_desc = N_('enable the entering of digraphs in Insert mode'),
2659      type = 'boolean',
2660      varname = 'p_dg',
2661    },
2662    {
2663      abbreviation = 'dir',
2664      defaults = '',
2665      deny_duplicates = true,
2666      desc = [=[
2667        List of directory names for the swap file, separated with commas.
2668
2669        Possible items:
2670        - The swap file will be created in the first directory where this is
2671          possible.  If it is not possible in any directory, but last
2672          directory listed in the option does not exist, it is created.
2673        - Empty means that no swap file will be used (recovery is
2674          impossible!) and no |E303| error will be given.
2675        - A directory "." means to put the swap file in the same directory as
2676          the edited file.  On Unix, a dot is prepended to the file name, so
2677          it doesn't show in a directory listing.  On MS-Windows the "hidden"
2678          attribute is set and a dot prepended if possible.
2679        - A directory starting with "./" (or ".\" for MS-Windows) means to put
2680          the swap file relative to where the edited file is.  The leading "."
2681          is replaced with the path name of the edited file.
2682        - For Unix and Win32, if a directory ends in two path separators "//",
2683          the swap file name will be built from the complete path to the file
2684          with all path separators replaced by percent '%' signs (including
2685          the colon following the drive letter on Win32).  This will ensure
2686          file name uniqueness in the preserve directory.
2687          On Win32, it is also possible to end with "\\".  However, When a
2688          separating comma is following, you must use "//", since "\\" will
2689          include the comma in the file name.  Therefore it is recommended to
2690          use '//', instead of '\\'.
2691        - Spaces after the comma are ignored, other spaces are considered part
2692          of the directory name.  To have a space at the start of a directory
2693          name, precede it with a backslash.
2694        - To include a comma in a directory name precede it with a backslash.
2695        - A directory name may end in an ':' or '/'.
2696        - Environment variables are expanded |:set_env|.
2697        - Careful with '\' characters, type one before a space, type two to
2698          get one in the option (see |option-backslash|), for example: >vim
2699            set dir=c:\\tmp,\ dir\\,with\\,commas,\\\ dir\ with\ spaces
2700        <
2701        Editing the same file twice will result in a warning.  Using "/tmp" on
2702        is discouraged: if the system crashes you lose the swap file. And
2703        others on the computer may be able to see the files.
2704        Use |:set+=| and |:set-=| when adding or removing directories from the
2705        list, this avoids problems if the Nvim default is changed.
2706      ]=],
2707      expand = 'nodefault',
2708      full_name = 'directory',
2709      list = 'onecomma',
2710      scope = { 'global' },
2711      secure = true,
2712      short_desc = N_('list of directory names for the swap file'),
2713      type = 'string',
2714      varname = 'p_dir',
2715    },
2716    {
2717      abbreviation = 'dy',
2718      cb = 'did_set_display',
2719      validation_cb = 'validate_str_generic',
2720      defaults = 'lastline',
2721      schema = {
2722        flags = { 'lastline', 'truncate', 'uhex', 'msgsep' },
2723      },
2724      deny_duplicates = true,
2725      desc = [=[
2726        Change the way text is displayed.  This is a comma-separated list of
2727        flags:
2728        lastline	When included, as much as possible of the last line
2729        		in a window will be displayed.  "@@@" is put in the
2730        		last columns of the last screen line to indicate the
2731        		rest of the line is not displayed.
2732        truncate	Like "lastline", but "@@@" is displayed in the first
2733        		column of the last screen line.  Overrules "lastline".
2734        uhex		Show unprintable characters hexadecimal as <xx>
2735        		instead of using ^C and ~C.
2736        msgsep		Obsolete flag. Allowed but takes no effect. |msgsep|
2737
2738        When neither "lastline" nor "truncate" is included, a last line that
2739        doesn't fit is replaced with "@" lines.
2740
2741        The "@" character can be changed by setting the "lastline" item in
2742        'fillchars'.  The character is highlighted with |hl-NonText|.
2743      ]=],
2744      full_name = 'display',
2745      list = 'onecomma',
2746      redraw = { 'all_windows' },
2747      scope = { 'global' },
2748      short_desc = N_('list of flags for how to display text'),
2749      type = 'string',
2750      varname = 'p_dy',
2751      flags_varname = 'dy_flags',
2752    },
2753    {
2754      abbreviation = 'ead',
2755      validation_cb = 'validate_str_generic',
2756      defaults = 'both',
2757      schema = {
2758        enum = { 'both', 'ver', 'hor' },
2759      },
2760      desc = [=[
2761        Tells when the 'equalalways' option applies:
2762        	ver	vertically, width of windows is not affected
2763        	hor	horizontally, height of windows is not affected
2764        	both	width and height of windows is affected
2765      ]=],
2766      full_name = 'eadirection',
2767      scope = { 'global' },
2768      short_desc = N_("in which direction 'equalalways' works"),
2769      type = 'string',
2770      varname = 'p_ead',
2771    },
2772    {
2773      abbreviation = 'ed',
2774      defaults = false,
2775      full_name = 'edcompatible',
2776      scope = { 'global' },
2777      short_desc = N_('Deprecated'),
2778      type = 'boolean',
2779      immutable = true,
2780    },
2781    {
2782      abbreviation = 'emo',
2783      cb = 'did_set_emoji',
2784      defaults = true,
2785      desc = [=[
2786        When on all Unicode emoji characters are considered to be full width.
2787        This excludes "text emoji" characters, which are normally displayed as
2788        single width. However, such "text emoji" are treated as full-width
2789        emoji if they are followed by the U+FE0F variant selector.
2790
2791        Unfortunately there is no good specification for this and it has been
2792        determined on trial-and-error basis.  Use the |setcellwidths()|
2793        function to change the behavior.
2794      ]=],
2795      full_name = 'emoji',
2796      redraw = { 'all_windows', 'ui_option' },
2797      scope = { 'global' },
2798      short_desc = N_('No description'),
2799      type = 'boolean',
2800      varname = 'p_emoji',
2801    },
2802    {
2803      abbreviation = 'enc',
2804      cb = 'did_set_encoding',
2805      defaults = macros('ENC_DFLT', 'string'),
2806      desc = [=[
2807        String-encoding used internally and for |RPC| communication.
2808        Always UTF-8.
2809
2810        See 'fileencoding' to control file-content encoding.
2811      ]=],
2812      full_name = 'encoding',
2813      scope = { 'global' },
2814      short_desc = N_('encoding used internally'),
2815      type = 'string',
2816      varname = 'p_enc',
2817    },
2818    {
2819      abbreviation = 'eof',
2820      cb = 'did_set_eof_eol_fixeol_bomb',
2821      defaults = false,
2822      desc = [=[
2823        Indicates that a CTRL-Z character was found at the end of the file
2824        when reading it.  Normally only happens when 'fileformat' is "dos".
2825        When writing a file and this option is off and the 'binary' option
2826        is on, or 'fixeol' option is off, no CTRL-Z will be written at the
2827        end of the file.
2828        See |eol-and-eof| for example settings.
2829      ]=],
2830      full_name = 'endoffile',
2831      no_mkrc = true,
2832      redraw = { 'statuslines' },
2833      scope = { 'buf' },
2834      short_desc = N_('write CTRL-Z for last line in file'),
2835      type = 'boolean',
2836      varname = 'p_eof',
2837    },
2838    {
2839      abbreviation = 'eol',
2840      cb = 'did_set_eof_eol_fixeol_bomb',
2841      defaults = true,
2842      desc = [=[
2843        When writing a file and this option is off and the 'binary' option
2844        is on, or 'fixeol' option is off, no <EOL> will be written for the
2845        last line in the file.  This option is automatically set or reset when
2846        starting to edit a new file, depending on whether file has an <EOL>
2847        for the last line in the file.  Normally you don't have to set or
2848        reset this option.
2849        When 'binary' is off and 'fixeol' is on the value is not used when
2850        writing the file.  When 'binary' is on or 'fixeol' is off it is used
2851        to remember the presence of a <EOL> for the last line in the file, so
2852        that when you write the file the situation from the original file can
2853        be kept.  But you can change it if you want to.
2854        See |eol-and-eof| for example settings.
2855      ]=],
2856      full_name = 'endofline',
2857      no_mkrc = true,
2858      redraw = { 'statuslines' },
2859      scope = { 'buf' },
2860      short_desc = N_('write <EOL> for last line in file'),
2861      type = 'boolean',
2862      varname = 'p_eol',
2863    },
2864    {
2865      abbreviation = 'ea',
2866      cb = 'did_set_equalalways',
2867      defaults = true,
2868      desc = [=[
2869        When on, all the windows are automatically made the same size after
2870        splitting or closing a window.  This also happens the moment the
2871        option is switched on.  When off, splitting a window will reduce the
2872        size of the current window and leave the other windows the same.  When
2873        closing a window the extra lines are given to the window next to it
2874        (depending on 'splitbelow' and 'splitright').
2875        When mixing vertically and horizontally split windows, a minimal size
2876        is computed and some windows may be larger if there is room.  The
2877        'eadirection' option tells in which direction the size is affected.
2878        Changing the height and width of a window can be avoided by setting
2879        'winfixheight' and 'winfixwidth', respectively.
2880        If a window size is specified when creating a new window sizes are
2881        currently not equalized (it's complicated, but may be implemented in
2882        the future).
2883      ]=],
2884      full_name = 'equalalways',
2885      scope = { 'global' },
2886      short_desc = N_('windows are automatically made the same size'),
2887      type = 'boolean',
2888      varname = 'p_ea',
2889    },
2890    {
2891      abbreviation = 'ep',
2892      defaults = '',
2893      desc = [=[
2894        External program to use for "=" command.  When this option is empty
2895        the internal formatting functions are used; either 'lisp', 'cindent'
2896        or 'indentexpr'.
2897        Environment variables are expanded |:set_env|.  See |option-backslash|
2898        about including spaces and backslashes.
2899      ]=],
2900      expand = true,
2901      full_name = 'equalprg',
2902      scope = { 'global', 'buf' },
2903      secure = true,
2904      short_desc = N_('external program to use for "=" command'),
2905      type = 'string',
2906      varname = 'p_ep',
2907    },
2908    {
2909      abbreviation = 'eb',
2910      defaults = false,
2911      desc = [=[
2912        Ring the bell (beep or screen flash) for error messages.  This only
2913        makes a difference for error messages, the bell will be used always
2914        for a lot of errors without a message (e.g., hitting <Esc> in Normal
2915        mode).  See 'visualbell' to make the bell behave like a screen flash
2916        or do nothing.  See 'belloff' to finetune when to ring the bell.
2917      ]=],
2918      full_name = 'errorbells',
2919      scope = { 'global' },
2920      short_desc = N_('ring the bell for error messages'),
2921      type = 'boolean',
2922      varname = 'p_eb',
2923    },
2924    {
2925      abbreviation = 'ef',
2926      defaults = macros('DFLT_ERRORFILE', 'string'),
2927      desc = [=[
2928        Name of the errorfile for the QuickFix mode (see |:cf|).
2929        When the "-q" command-line argument is used, 'errorfile' is set to the
2930        following argument.  See |-q|.
2931        NOT used for the ":make" command.  See 'makeef' for that.
2932        Environment variables are expanded |:set_env|.
2933        See |option-backslash| about including spaces and backslashes.
2934      ]=],
2935      expand = true,
2936      full_name = 'errorfile',
2937      scope = { 'global' },
2938      secure = true,
2939      short_desc = N_('name of the errorfile for the QuickFix mode'),
2940      type = 'string',
2941      varname = 'p_ef',
2942    },
2943    {
2944      abbreviation = 'efm',
2945      defaults = {
2946        if_true = macros('DFLT_EFM', 'string'),
2947        doc = 'is very long',
2948      },
2949      deny_duplicates = true,
2950      desc = [=[
2951        Scanf-like description of the format for the lines in the error file
2952        (see |errorformat|).
2953      ]=],
2954      full_name = 'errorformat',
2955      list = 'onecomma',
2956      scope = { 'global', 'buf' },
2957      short_desc = N_('description of the lines in the error file'),
2958      type = 'string',
2959      varname = 'p_efm',
2960    },
2961    {
2962      abbreviation = 'ei',
2963      validation_cb = 'validate_eventignore',
2964      defaults = '',
2965      deny_duplicates = true,
2966      desc = [=[
2967        A list of autocommand event names, which are to be ignored.
2968        When set to "all" or when "all" is one of the items, all autocommand
2969        events are ignored, autocommands will not be executed.
2970        Otherwise this is a comma-separated list of event names.  Example: >vim
2971            set ei=WinEnter,WinLeave
2972        <
2973        To ignore all but some events, a "-" prefix can be used: >vim
2974            :set ei=all,-WinLeave
2975        <
2976      ]=],
2977      expand_cb = 'expand_set_eventignore',
2978      full_name = 'eventignore',
2979      list = 'onecomma',
2980      scope = { 'global' },
2981      short_desc = N_('autocommand events that are ignored'),
2982      type = 'string',
2983      varname = 'p_ei',
2984    },
2985    {
2986      abbreviation = 'eiw',
2987      validation_cb = 'validate_eventignore',
2988      defaults = '',
2989      deny_duplicates = true,
2990      desc = [=[
2991        Similar to 'eventignore' but applies to a particular window and its
2992        buffers, for which window and buffer related autocommands can be
2993        ignored indefinitely without affecting the global 'eventignore'.
2994
2995        Note: The following events are considered to happen outside of a
2996        window context and thus cannot be ignored by 'eventignorewin':
2997
2998        	<PLACEHOLDER>
2999      ]=],
3000      expand_cb = 'expand_set_eventignore',
3001      full_name = 'eventignorewin',
3002      list = 'onecomma',
3003      scope = { 'win' },
3004      short_desc = N_('autocommand events that are ignored in a window'),
3005      type = 'string',
3006    },
3007    {
3008      abbreviation = 'et',
3009      defaults = false,
3010      desc = [=[
3011        In Insert mode: Use the appropriate number of spaces to insert a
3012        <Tab>.  Spaces are used in indents with the '>' and '<' commands and
3013        when 'autoindent' is on.  To insert a real tab when 'expandtab' is
3014        on, use CTRL-V<Tab>.  See also |:retab| and |ins-expandtab|.
3015      ]=],
3016      full_name = 'expandtab',
3017      scope = { 'buf' },
3018      short_desc = N_('use spaces when <Tab> is inserted'),
3019      type = 'boolean',
3020      varname = 'p_et',
3021    },
3022    {
3023      abbreviation = 'ex',
3024      defaults = false,
3025      desc = [=[
3026        Enables project-local configuration. Nvim will execute any .nvim.lua,
3027        .nvimrc, or .exrc file found in the |current-directory| and all parent
3028        directories (ordered upwards), if the files are in the |trust| list.
3029        Use |:trust| to manage trusted files. See also |vim.secure.read()|.
3030
3031        Unset 'exrc' to stop further searching of 'exrc' files in parent
3032        directories, similar to |editorconfig.root|.
3033
3034        To get its own location, a Lua exrc file can use |debug.getinfo()|.
3035        See |lua-script-location|.
3036
3037        Compare 'exrc' to |editorconfig|:
3038        - 'exrc' can execute any code; editorconfig only specifies settings.
3039        - 'exrc' is Nvim-specific; editorconfig works in other editors.
3040
3041        To achieve project-local LSP configuration:
3042        1. Enable 'exrc'.
3043        2. Place LSP configs at ".nvim/lsp/*.lua" in your project root.
3044        3. Create ".nvim.lua" in your project root directory with this line: >lua
3045            vim.cmd[[set runtimepath+=.nvim]]
3046        <
3047      ]=],
3048      full_name = 'exrc',
3049      scope = { 'global' },
3050      secure = true,
3051      short_desc = N_('read project-local configuration in parent directories'),
3052      tags = { 'project-config', 'workspace-config' },
3053      type = 'boolean',
3054      varname = 'p_exrc',
3055    },
3056    {
3057      abbreviation = 'fenc',
3058      cb = 'did_set_encoding',
3059      defaults = '',
3060      desc = [=[
3061        File-content encoding for the current buffer. Conversion is done with
3062        iconv() or as specified with 'charconvert'.
3063
3064        When 'fileencoding' is not UTF-8, conversion will be done when
3065        writing the file.  For reading see below.
3066        When 'fileencoding' is empty, the file will be saved with UTF-8
3067        encoding (no conversion when reading or writing a file).
3068
3069        WARNING: Conversion to a non-Unicode encoding can cause loss of
3070        information!
3071
3072        See |encoding-names| for the possible values.  Additionally, values may be
3073        specified that can be handled by the converter, see
3074        |mbyte-conversion|.
3075
3076        When reading a file 'fileencoding' will be set from 'fileencodings'.
3077        To read a file in a certain encoding it won't work by setting
3078        'fileencoding', use the |++enc| argument.  One exception: when
3079        'fileencodings' is empty the value of 'fileencoding' is used.
3080        For a new file the global value of 'fileencoding' is used.
3081
3082        Prepending "8bit-" and "2byte-" has no meaning here, they are ignored.
3083        When the option is set, the value is converted to lowercase.  Thus
3084        you can set it with uppercase values too.  '_' characters are
3085        replaced with '-'.  If a name is recognized from the list at
3086        |encoding-names|, it is replaced by the standard name.  For example
3087        "ISO8859-2" becomes "iso-8859-2".
3088
3089        When this option is set, after starting to edit a file, the 'modified'
3090        option is set, because the file would be different when written.
3091
3092        Keep in mind that changing 'fenc' from a modeline happens
3093        AFTER the text has been read, thus it applies to when the file will be
3094        written.  If you do set 'fenc' in a modeline, you might want to set
3095        'nomodified' to avoid not being able to ":q".
3096
3097        This option cannot be changed when 'modifiable' is off.
3098      ]=],
3099      expand_cb = 'expand_set_encoding',
3100      full_name = 'fileencoding',
3101      no_mkrc = true,
3102      redraw = { 'statuslines', 'current_buffer' },
3103      scope = { 'buf' },
3104      short_desc = N_('file encoding for multi-byte text'),
3105      tags = { 'E213' },
3106      type = 'string',
3107      varname = 'p_fenc',
3108    },
3109    {
3110      abbreviation = 'fencs',
3111      defaults = 'ucs-bom,utf-8,default,latin1',
3112      deny_duplicates = true,
3113      desc = [=[
3114        This is a list of character encodings considered when starting to edit
3115        an existing file.  When a file is read, Vim tries to use the first
3116        mentioned character encoding.  If an error is detected, the next one
3117        in the list is tried.  When an encoding is found that works,
3118        'fileencoding' is set to it.  If all fail, 'fileencoding' is set to
3119        an empty string, which means that UTF-8 is used.
3120        	WARNING: Conversion can cause loss of information! You can use
3121        	the |++bad| argument to specify what is done with characters
3122        	that can't be converted.
3123        For an empty file or a file with only ASCII characters most encodings
3124        will work and the first entry of 'fileencodings' will be used (except
3125        "ucs-bom", which requires the BOM to be present).  If you prefer
3126        another encoding use an BufReadPost autocommand event to test if your
3127        preferred encoding is to be used.  Example: >vim
3128        	au BufReadPost * if search('\S', 'w') == 0 |
3129        		\ set fenc=iso-2022-jp | endif
3130        <	This sets 'fileencoding' to "iso-2022-jp" if the file does not contain
3131        non-blank characters.
3132        When the |++enc| argument is used then the value of 'fileencodings' is
3133        not used.
3134        Note that 'fileencodings' is not used for a new file, the global value
3135        of 'fileencoding' is used instead.  You can set it with: >vim
3136        	setglobal fenc=iso-8859-2
3137        <	This means that a non-existing file may get a different encoding than
3138        an empty file.
3139        The special value "ucs-bom" can be used to check for a Unicode BOM
3140        (Byte Order Mark) at the start of the file.  It must not be preceded
3141        by "utf-8" or another Unicode encoding for this to work properly.
3142        An entry for an 8-bit encoding (e.g., "latin1") should be the last,
3143        because Vim cannot detect an error, thus the encoding is always
3144        accepted.
3145        The special value "default" can be used for the encoding from the
3146        environment.  It is useful when your environment uses a non-latin1
3147        encoding, such as Russian.
3148        When a file contains an illegal UTF-8 byte sequence it won't be
3149        recognized as "utf-8".  You can use the |8g8| command to find the
3150        illegal byte sequence.
3151        WRONG VALUES:			WHAT'S WRONG:
3152        	latin1,utf-8		"latin1" will always be used
3153        	utf-8,ucs-bom,latin1	BOM won't be recognized in a utf-8
3154        				file
3155        	cp1250,latin1		"cp1250" will always be used
3156        If 'fileencodings' is empty, 'fileencoding' is not modified.
3157        See 'fileencoding' for the possible values.
3158        Setting this option does not have an effect until the next time a file
3159        is read.
3160      ]=],
3161      expand_cb = 'expand_set_encoding',
3162      full_name = 'fileencodings',
3163      list = 'onecomma',
3164      scope = { 'global' },
3165      short_desc = N_('automatically detected character encodings'),
3166      type = 'string',
3167      varname = 'p_fencs',
3168    },
3169    {
3170      abbreviation = 'ff',
3171      cb = 'did_set_fileformat',
3172      validation_cb = 'validate_fileformat',
3173      defaults = {
3174        condition = 'USE_CRNL',
3175        if_true = 'dos',
3176        if_false = 'unix',
3177        doc = 'Windows: "dos", Unix: "unix"',
3178      },
3179      schema = {
3180        enum = { 'unix', 'dos', 'mac' },
3181      },
3182      desc = [=[
3183        This gives the <EOL> of the current buffer, which is used for
3184        reading/writing the buffer from/to a file:
3185            dos	    <CR><NL>
3186            unix    <NL>
3187            mac	    <CR>
3188        When "dos" is used, CTRL-Z at the end of a file is ignored.
3189        See |file-formats| and |file-read|.
3190        For the character encoding of the file see 'fileencoding'.
3191        When 'binary' is set, the value of 'fileformat' is ignored, file I/O
3192        works like it was set to "unix".
3193        This option is set automatically when starting to edit a file and
3194        'fileformats' is not empty and 'binary' is off.
3195        When this option is set, after starting to edit a file, the 'modified'
3196        option is set, because the file would be different when written.
3197        This option cannot be changed when 'modifiable' is off.
3198      ]=],
3199      full_name = 'fileformat',
3200      no_mkrc = true,
3201      redraw = { 'curswant', 'statuslines' },
3202      scope = { 'buf' },
3203      short_desc = N_('file format used for file I/O'),
3204      type = 'string',
3205      varname = 'p_ff',
3206    },
3207    {
3208      abbreviation = 'ffs',
3209      validation_cb = 'validate_str_generic',
3210      defaults = {
3211        condition = 'USE_CRNL',
3212        if_true = 'dos,unix',
3213        if_false = 'unix,dos',
3214        doc = 'Windows: "dos,unix", Unix: "unix,dos"',
3215      },
3216      deny_duplicates = true,
3217      desc = [=[
3218        This gives the end-of-line (<EOL>) formats that will be tried when
3219        starting to edit a new buffer and when reading a file into an existing
3220        buffer:
3221        - When empty, the format defined with 'fileformat' will be used
3222          always.  It is not set automatically.
3223        - When set to one name, that format will be used whenever a new buffer
3224          is opened.  'fileformat' is set accordingly for that buffer.  The
3225          'fileformats' name will be used when a file is read into an existing
3226          buffer, no matter what 'fileformat' for that buffer is set to.
3227        - When more than one name is present, separated by commas, automatic
3228          <EOL> detection will be done when reading a file.  When starting to
3229          edit a file, a check is done for the <EOL>:
3230          1. If all lines end in <CR><NL>, and 'fileformats' includes "dos",
3231             'fileformat' is set to "dos".
3232          2. If a <NL> is found and 'fileformats' includes "unix",
3233             'fileformat' is set to "unix".  Note that when a <NL> is found
3234             without a preceding <CR>, "unix" is preferred over "dos".
3235          3. If 'fileformat' has not yet been set, and if a <CR> is found, and
3236             if 'fileformats' includes "mac", 'fileformat' is set to "mac".
3237             This means that "mac" is only chosen when:
3238              "unix" is not present or no <NL> is found in the file, and
3239              "dos" is not present or no <CR><NL> is found in the file.
3240             Except: if "unix" was chosen, but there is a <CR> before
3241             the first <NL>, and there appear to be more <CR>s than <NL>s in
3242             the first few lines, "mac" is used.
3243          4. If 'fileformat' is still not set, the first name from
3244             'fileformats' is used.
3245          When reading a file into an existing buffer, the same is done, but
3246          this happens like 'fileformat' has been set appropriately for that
3247          file only, the option is not changed.
3248        When 'binary' is set, the value of 'fileformats' is not used.
3249
3250        When Vim starts up with an empty buffer the first item is used.  You
3251        can overrule this by setting 'fileformat' in your .vimrc.
3252
3253        For systems with a Dos-like <EOL> (<CR><NL>), when reading files that
3254        are ":source"ed and for vimrc files, automatic <EOL> detection may be
3255        done:
3256        - When 'fileformats' is empty, there is no automatic detection.  Dos
3257          format will be used.
3258        - When 'fileformats' is set to one or more names, automatic detection
3259          is done.  This is based on the first <NL> in the file: If there is a
3260          <CR> in front of it, Dos format is used, otherwise Unix format is
3261          used.
3262        Also see |file-formats|.
3263      ]=],
3264      expand_cb = 'expand_set_str_generic',
3265      full_name = 'fileformats',
3266      list = 'onecomma',
3267      scope = { 'global' },
3268      short_desc = N_("automatically detected values for 'fileformat'"),
3269      type = 'string',
3270      varname = 'p_ffs',
3271    },
3272    {
3273      abbreviation = 'fic',
3274      defaults = {
3275        condition = 'CASE_INSENSITIVE_FILENAME',
3276        if_false = false,
3277        if_true = true,
3278        doc = [[on for systems where case in file
3279   names is normally ignored]],
3280      },
3281      desc = [=[
3282        When set, case is ignored when using file and directory names.
3283
3284        This option is on by default on systems where the filesystem is
3285        traditionally case-insensitive (for example MS-Windows and macOS).
3286        However, Vim cannot determine at runtime whether a particular
3287        filesystem is case-sensitive or case-insensitive.
3288
3289        See 'wildignorecase' for only ignoring case when doing completion.
3290      ]=],
3291      full_name = 'fileignorecase',
3292      scope = { 'global' },
3293      short_desc = N_('ignore case when using file names'),
3294      type = 'boolean',
3295      varname = 'p_fic',
3296    },
3297    {
3298      abbreviation = 'ft',
3299      cb = 'did_set_filetype_or_syntax',
3300      validation_cb = 'validate_filetype',
3301      defaults = '',
3302      desc = [=[
3303        When this option is set, the FileType autocommand event is triggered.
3304        All autocommands that match with the value of this option will be
3305        executed.  Thus the value of 'filetype' is used in place of the file
3306        name.
3307        Otherwise this option does not always reflect the current file type.
3308        This option is normally set when the file type is detected.  To enable
3309        this use the ":filetype on" command. |:filetype|
3310        Setting this option to a different value is most useful in a modeline,
3311        for a file for which the file type is not automatically recognized.
3312        Example, for in an IDL file: >c
3313        	/* vim: set filetype=idl : */
3314        <	|FileType| |filetypes|
3315        When a dot appears in the value then this separates two filetype
3316        names, it should therefore not be used for a filetype.  Example: >c
3317        	/* vim: set filetype=c.doxygen : */
3318        <	This will use the "c" filetype first, then the "doxygen" filetype.
3319        This works both for filetype plugins and for syntax files.  More than
3320        one dot may appear.
3321        This option is not copied to another buffer, independent of the 's' or
3322        'S' flag in 'cpoptions'.
3323        Only alphanumeric characters, '-' and '_' can be used (and a '.' is
3324        allowed as delimiter when combining different filetypes).
3325      ]=],
3326      full_name = 'filetype',
3327      noglob = true,
3328      normal_fname_chars = true,
3329      scope = { 'buf' },
3330      short_desc = N_('type of file, used for autocommands'),
3331      type = 'string',
3332      varname = 'p_ft',
3333    },
3334    {
3335      abbreviation = 'fcs',
3336      cb = 'did_set_chars_option',
3337      validation_cb = 'validate_chars_option',
3338      defaults = '',
3339      deny_duplicates = true,
3340      -- 'fillchars' schema: generates `fcs_tab` (the `fcs_chars` dispatch table).
3341      schema = {
3342        chars = {
3343          { 'stl', 'char', { def = ' ' } },
3344          { 'stlnc', 'char', { def = ' ' } },
3345          { 'wbr', 'char', { def = ' ' } },
3346          { 'horiz', 'char', { def = '─', fallback = '-' } },
3347          { 'horizup', 'char', { def = '┴', fallback = '-' } },
3348          { 'horizdown', 'char', { def = '┬', fallback = '-' } },
3349          { 'vert', 'char', { def = '│', fallback = '|' } },
3350          { 'vertleft', 'char', { def = '┤', fallback = '|' } },
3351          { 'vertright', 'char', { def = '├', fallback = '|' } },
3352          { 'verthoriz', 'char', { def = '┼', fallback = '+' } },
3353          { 'fold', 'char', { def = '·', fallback = '-' } },
3354          { 'foldopen', 'char', { def = '-' } },
3355          { 'foldclose', 'char', { field = 'foldclosed', def = '+' } },
3356          { 'foldsep', 'char', { def = '│', fallback = '|' } },
3357          { 'foldinner', 'char' },
3358          { 'diff', 'char', { def = '-' } },
3359          { 'msgsep', 'char', { def = ' ' } },
3360          { 'eob', 'char', { def = '~' } },
3361          { 'lastline', 'char', { def = '@' } },
3362          { 'trunc', 'char', { def = '>' } },
3363          { 'truncrl', 'char', { def = '<' } },
3364        },
3365      },
3366      desc = [=[
3367        Characters to fill the statuslines, vertical separators, special
3368        lines in the window and truncated text in the |ins-completion-menu|.
3369        It is a comma-separated list of items.  Each item has a name, a colon
3370        and the value of that item: |E1511|
3371
3372          item		default		Used for ~
3373          stl		' '		statusline of the current window
3374          stlnc		' '		statusline of the non-current windows
3375          wbr		' '		window bar
3376          horiz		'─' or '-'	horizontal separators |:split|
3377          horizup	'┴' or '-'	upwards facing horizontal separator
3378          horizdown	'┬' or '-'	downwards facing horizontal separator
3379          vert		'│' or '|'	vertical separators |:vsplit|
3380          vertleft	'┤' or '|'	left facing vertical separator
3381          vertright	'├' or '|'	right facing vertical separator
3382          verthoriz	'┼' or '+'	overlapping vertical and horizontal
3383        				separator
3384          fold		'·' or '-'	filling 'foldtext'
3385          foldopen	'-'		mark the beginning of a fold
3386          foldclose	'+'		show a closed fold
3387          foldsep	'│' or '|'	open fold middle marker
3388          foldinner	none		character to show instead of the
3389        				numeric foldlevel when it would be
3390        				repeated in a narrow 'foldcolumn'
3391          diff		'-'		deleted lines of the 'diff' option
3392          msgsep	' '		message separator 'display'
3393          eob		'~'		empty lines at the end of a buffer
3394          lastline	'@'		'display' contains lastline/truncate
3395          trunc		'>'		truncated text in the
3396        				|ins-completion-menu|.
3397          truncrl	'<'		same as "trunc" in 'rightleft' mode
3398
3399        Any one that is omitted will fall back to the default.
3400
3401        Note that "horiz", "horizup", "horizdown", "vertleft", "vertright" and
3402        "verthoriz" are only used when 'laststatus' is 3, since only vertical
3403        window separators are used otherwise.
3404
3405        If 'ambiwidth' is "double" then "horiz", "horizup", "horizdown",
3406        "vert", "vertleft", "vertright", "verthoriz", "foldsep" and "fold"
3407        default to single-byte alternatives.
3408
3409        Example: >vim
3410            set fillchars=stl:\ ,stlnc:\ ,vert:│,fold:·,diff:-
3411        <
3412        All items support single-byte and multibyte characters.  But
3413        double-width characters are not supported. |E1512|
3414
3415        The highlighting used for these items:
3416          item		highlight group ~
3417          stl		StatusLine		|hl-StatusLine|
3418          stlnc		StatusLineNC		|hl-StatusLineNC|
3419          wbr		WinBar			|hl-WinBar| or |hl-WinBarNC|
3420          horiz		WinSeparator		|hl-WinSeparator|
3421          horizup	WinSeparator		|hl-WinSeparator|
3422          horizdown	WinSeparator		|hl-WinSeparator|
3423          vert		WinSeparator		|hl-WinSeparator|
3424          vertleft	WinSeparator		|hl-WinSeparator|
3425          vertright	WinSeparator		|hl-WinSeparator|
3426          verthoriz	WinSeparator		|hl-WinSeparator|
3427          fold		Folded			|hl-Folded|
3428          foldopen	FoldColumn		|hl-FoldColumn|
3429          foldclose	FoldColumn		|hl-FoldColumn|
3430          foldsep	FoldColumn		|hl-FoldColumn|
3431          diff		DiffDelete		|hl-DiffDelete|
3432          msgsep	MsgSeparator		|hl-MsgSeparator|
3433          eob		EndOfBuffer		|hl-EndOfBuffer|
3434          lastline	NonText			|hl-NonText|
3435          trunc		one of the many Popup menu highlighting groups like
3436        		|hl-PmenuSel|
3437          truncrl	same as "trunc"
3438      ]=],
3439      expand_cb = 'expand_set_chars_option',
3440      full_name = 'fillchars',
3441      list = 'onecommacolon',
3442      redraw = { 'current_window' },
3443      scope = { 'global', 'win' },
3444      short_desc = N_('characters to use for displaying special items'),
3445      type = 'string',
3446      varname = 'p_fcs',
3447    },
3448    {
3449      abbreviation = 'ffu',
3450      defaults = '',
3451      desc = [=[
3452        Function that is called to obtain the filename(s) for the |:find|
3453        command.  When this option is empty, the internal |file-searching|
3454        mechanism is used.
3455
3456        The value can be the name of a function, a |lambda| or a |Funcref|.
3457        See |option-value-function| for more information.
3458
3459        The function is called with two arguments.  The first argument is a
3460        |String| and is the |:find| command argument.  The second argument is
3461        a |Boolean| and is set to |v:true| when the function is called to get
3462        a List of command-line completion matches for the |:find| command.
3463        The function should return a List, which is handled similarly to the
3464        return value of a |:command-completion-customlist| function.
3465
3466        The function can process all the directories specified in 'path'.
3467
3468        If a match is found, the function should return a |List| containing
3469        one or more file names.  If a match is not found, the function
3470        should return an empty List.
3471
3472        If any errors are encountered during the function invocation, an
3473        empty List is used as the return value.
3474
3475        It is not allowed to change text or jump to another window while
3476        executing the 'findfunc' |textlock|.
3477
3478
3479        Examples:
3480        >lua
3481            -- Use vim.fn.glob()
3482            vim.o.findfunc = function(cmdarg, cmdcomplete)
3483              local pat = cmdcomplete and (cmdarg .. '*') or cmdarg
3484              return vim.fn.glob(pat, false, true)
3485            end
3486
3487            -- Use the "git ls-files" output
3488            vim.o.findfunc = function(cmdarg, cmdcomplete)
3489              local fnames = vim.fn.systemlist('git ls-files')
3490              return vim.tbl_filter(function(v)
3491                return v:lower():find(cmdarg:lower(), 1, true) ~= nil
3492              end, fnames)
3493            end
3494        <
3495      ]=],
3496      full_name = 'findfunc',
3497      scope = { 'global', 'buf' },
3498      secure = true,
3499      short_desc = N_('function called for :find'),
3500      tags = { 'E1514' },
3501      type = 'func',
3502      varname = 'p_ffu',
3503    },
3504    {
3505      abbreviation = 'fixeol',
3506      cb = 'did_set_eof_eol_fixeol_bomb',
3507      defaults = true,
3508      desc = [=[
3509        When writing a file and this option is on, <EOL> at the end of file
3510        will be restored if missing.  Turn this option off if you want to
3511        preserve the situation from the original file.
3512        When the 'binary' option is set the value of this option doesn't
3513        matter.
3514        See the 'endofline' option.
3515        See |eol-and-eof| for example settings.
3516      ]=],
3517      full_name = 'fixendofline',
3518      redraw = { 'statuslines' },
3519      scope = { 'buf' },
3520      short_desc = N_('make sure last line in file has <EOL>'),
3521      type = 'boolean',
3522      varname = 'p_fixeol',
3523    },
3524    {
3525      abbreviation = 'fcl',
3526      validation_cb = 'validate_str_generic',
3527      defaults = '',
3528      schema = {
3529        set = { 'all' },
3530      },
3531      deny_duplicates = true,
3532      desc = [=[
3533        When set to "all", a fold is closed when the cursor isn't in it and
3534        its level is higher than 'foldlevel'.  Useful if you want folds to
3535        automatically close when moving out of them.
3536      ]=],
3537      full_name = 'foldclose',
3538      list = 'onecomma',
3539      redraw = { 'current_window' },
3540      scope = { 'global' },
3541      short_desc = N_('close a fold when the cursor leaves it'),
3542      type = 'string',
3543      varname = 'p_fcl',
3544    },
3545    {
3546      abbreviation = 'fdc',
3547      validation_cb = 'validate_str_generic',
3548      defaults = '0',
3549      schema = {
3550        enum = {
3551          'auto',
3552          'auto:1',
3553          'auto:2',
3554          'auto:3',
3555          'auto:4',
3556          'auto:5',
3557          'auto:6',
3558          'auto:7',
3559          'auto:8',
3560          'auto:9',
3561          '0',
3562          '1',
3563          '2',
3564          '3',
3565          '4',
3566          '5',
3567          '6',
3568          '7',
3569          '8',
3570          '9',
3571        },
3572      },
3573      desc = [=[
3574        When and how to draw the foldcolumn. Valid values are:
3575            "auto":       resize to the minimum amount of folds to display.
3576            "auto:[1-9]": resize to accommodate multiple folds up to the
3577        		  selected level
3578            "0":          to disable foldcolumn
3579            "[1-9]":      to display a fixed number of columns
3580        See |folding|.
3581      ]=],
3582      full_name = 'foldcolumn',
3583      redraw = { 'current_window' },
3584      scope = { 'win' },
3585      short_desc = N_('width of the column used to indicate folds'),
3586      type = 'string',
3587    },
3588    {
3589      abbreviation = 'fen',
3590      cb = 'did_set_foldenable',
3591      defaults = true,
3592      desc = [=[
3593        When off, all folds are open.  This option can be used to quickly
3594        switch between showing all text unfolded and viewing the text with
3595        folds (including manually opened or closed folds).  It can be toggled
3596        with the |zi| command.  The 'foldcolumn' will remain blank when
3597        'foldenable' is off.
3598        This option is set by commands that create a new fold or close a fold.
3599        See |folding|.
3600      ]=],
3601      full_name = 'foldenable',
3602      redraw = { 'current_window' },
3603      scope = { 'win' },
3604      short_desc = N_('set to display all folds open'),
3605      type = 'boolean',
3606    },
3607    {
3608      abbreviation = 'fde',
3609      cb = 'did_set_foldexpr',
3610      defaults = '0',
3611      desc = [=[
3612        The expression used for when 'foldmethod' is "expr".  It is evaluated
3613        for each line to obtain its fold level.  The context is set to the
3614        script where 'foldexpr' was set, script-local items can be accessed.
3615        See |fold-expr| for the usage.
3616
3617        The expression will be evaluated in the |sandbox| if set from a
3618        modeline, see |sandbox-option|.
3619        This option can't be set from a |modeline| when the 'diff' option is
3620        on or the 'modelineexpr' option is off.
3621
3622        It is not allowed to change text or jump to another window while
3623        evaluating 'foldexpr' |textlock|.
3624      ]=],
3625      full_name = 'foldexpr',
3626      modelineexpr = true,
3627      redraw = { 'current_window' },
3628      scope = { 'win' },
3629      short_desc = N_('expression used when \'foldmethod\' is "expr"'),
3630      type = 'expr',
3631    },
3632    {
3633      abbreviation = 'fdi',
3634      cb = 'did_set_foldignore',
3635      defaults = '#',
3636      desc = [=[
3637        Used only when 'foldmethod' is "indent".  Lines starting with
3638        characters in 'foldignore' will get their fold level from surrounding
3639        lines.  White space is skipped before checking for this character.
3640        The default "#" works well for C programs.  See |fold-indent|.
3641      ]=],
3642      full_name = 'foldignore',
3643      redraw = { 'current_window' },
3644      scope = { 'win' },
3645      short_desc = N_('ignore lines when \'foldmethod\' is "indent"'),
3646      type = 'string',
3647    },
3648    {
3649      abbreviation = 'fdl',
3650      cb = 'did_set_foldlevel',
3651      defaults = 0,
3652      desc = [=[
3653        Sets the fold level: Folds with a higher level will be closed.
3654        Setting this option to zero will close all folds.  Higher numbers will
3655        close fewer folds.
3656        This option is set by commands like |zm|, |zM| and |zR|.
3657        See |fold-foldlevel|.
3658      ]=],
3659      full_name = 'foldlevel',
3660      redraw = { 'current_window' },
3661      scope = { 'win' },
3662      short_desc = N_('close folds with a level higher than this'),
3663      type = 'number',
3664    },
3665    {
3666      abbreviation = 'fdls',
3667      defaults = -1,
3668      desc = [=[
3669        Sets 'foldlevel' when starting to edit another buffer in a window.
3670        Useful to always start editing with all folds closed (value zero),
3671        some folds closed (one) or no folds closed (99).
3672        This is done before reading any modeline, thus a setting in a modeline
3673        overrules this option.  Starting to edit a file for |diff-mode| also
3674        ignores this option and closes all folds.
3675        It is also done before BufReadPre autocommands, to allow an autocmd to
3676        overrule the 'foldlevel' value for specific files.
3677        When the value is negative, it is not used.
3678      ]=],
3679      full_name = 'foldlevelstart',
3680      redraw = { 'curswant' },
3681      scope = { 'global' },
3682      short_desc = N_("'foldlevel' when starting to edit a file"),
3683      type = 'number',
3684      varname = 'p_fdls',
3685    },
3686    {
3687      abbreviation = 'fmr',
3688      cb = 'did_set_foldmarker',
3689      validation_cb = 'validate_foldmarker',
3690      defaults = '{{{,}}}',
3691      deny_duplicates = true,
3692      desc = [=[
3693        The start and end marker used when 'foldmethod' is "marker".  There
3694        must be one comma, which separates the start and end marker.  The
3695        marker is a literal string (a regular expression would be too slow).
3696        See |fold-marker|.
3697      ]=],
3698      full_name = 'foldmarker',
3699      list = 'onecomma',
3700      redraw = { 'current_window' },
3701      scope = { 'win' },
3702      short_desc = N_('markers used when \'foldmethod\' is "marker"'),
3703      tags = { 'E536' },
3704      type = 'string',
3705    },
3706    {
3707      abbreviation = 'fdm',
3708      cb = 'did_set_foldmethod',
3709      validation_cb = 'validate_str_generic',
3710      defaults = 'manual',
3711      schema = {
3712        enum = { 'manual', 'expr', 'marker', 'indent', 'syntax', 'diff' },
3713      },
3714      desc = [=[
3715        The kind of folding used for the current window.  Possible values:
3716        |fold-manual|	manual	    Folds are created manually.
3717        |fold-indent|	indent	    Lines with equal indent form a fold.
3718        |fold-expr|	expr	    'foldexpr' gives the fold level of a line.
3719        |fold-marker|	marker	    Markers are used to specify folds.
3720        |fold-syntax|	syntax	    Syntax highlighting items specify folds.
3721        |fold-diff|	diff	    Fold text that is not changed.
3722      ]=],
3723      full_name = 'foldmethod',
3724      redraw = { 'current_window' },
3725      scope = { 'win' },
3726      short_desc = N_('folding type'),
3727      type = 'string',
3728    },
3729    {
3730      abbreviation = 'fml',
3731      cb = 'did_set_foldminlines',
3732      defaults = 1,
3733      desc = [=[
3734        Sets the number of screen lines above which a fold can be displayed
3735        closed.  Also for manually closed folds.  With the default value of
3736        one a fold can only be closed if it takes up two or more screen lines.
3737        Set to zero to be able to close folds of just one screen line.
3738        Note that this only has an effect on what is displayed.  After using
3739        "zc" to close a fold, which is displayed open because it's smaller
3740        than 'foldminlines', a following "zc" may close a containing fold.
3741      ]=],
3742      full_name = 'foldminlines',
3743      redraw = { 'current_window' },
3744      scope = { 'win' },
3745      short_desc = N_('minimum number of lines for a fold to be closed'),
3746      type = 'number',
3747    },
3748    {
3749      abbreviation = 'fdn',
3750      cb = 'did_set_foldnestmax',
3751      defaults = 20,
3752      desc = [=[
3753        Sets the maximum nesting of folds for the "indent" and "syntax"
3754        methods.  This avoids that too many folds will be created.  Using more
3755        than 20 doesn't work, because the internal limit is 20.
3756      ]=],
3757      full_name = 'foldnestmax',
3758      redraw = { 'current_window' },
3759      scope = { 'win' },
3760      short_desc = N_('maximum fold depth'),
3761      type = 'number',
3762    },
3763    {
3764      abbreviation = 'fdo',
3765      validation_cb = 'validate_str_generic',
3766      defaults = 'block,hor,mark,percent,quickfix,search,tag,undo',
3767      schema = {
3768        flags = {
3769          'all',
3770          'block',
3771          'hor',
3772          'mark',
3773          'percent',
3774          'quickfix',
3775          'search',
3776          'tag',
3777          'insert',
3778          'undo',
3779          'jump',
3780        },
3781      },
3782      deny_duplicates = true,
3783      desc = [=[
3784        Specifies for which type of commands folds will be opened, if the
3785        command moves the cursor into a closed fold.  It is a comma-separated
3786        list of items.
3787        NOTE: When the command is part of a mapping this option is not used.
3788        Add the |zv| command to the mapping to get the same effect.
3789        (rationale: the mapping may want to control opening folds itself)
3790
3791        	item		commands ~
3792        	all		any
3793        	block		(, {, [[, [{, etc.
3794        	hor		horizontal movements: "l", "w", "fx", etc.
3795        	insert		any command in Insert mode
3796        	jump		far jumps: "G", "gg", etc.
3797        	mark		jumping to a mark: "'m", CTRL-O, etc.
3798        	percent		"%"
3799        	quickfix	":cn", ":crew", ":make", etc.
3800        	search		search for a pattern: "/", "n", "*", "gd", etc.
3801        			(not for a search pattern in a ":" command)
3802        			Also for |[s| and |]s|.
3803        	tag		jumping to a tag: ":ta", CTRL-T, etc.
3804        	undo		undo or redo: "u" and CTRL-R
3805        When a movement command is used for an operator (e.g., "dl" or "y%")
3806        this option is not used.  This means the operator will include the
3807        whole closed fold.
3808        Note that vertical movements are not here, because it would make it
3809        very difficult to move onto a closed fold.
3810        In insert mode the folds containing the cursor will always be open
3811        when text is inserted.
3812        To close folds you can re-apply 'foldlevel' with the |zx| command or
3813        set the 'foldclose' option to "all".
3814      ]=],
3815      full_name = 'foldopen',
3816      list = 'onecomma',
3817      redraw = { 'curswant' },
3818      scope = { 'global' },
3819      short_desc = N_('for which commands a fold will be opened'),
3820      type = 'string',
3821      varname = 'p_fdo',
3822      flags_varname = 'fdo_flags',
3823    },
3824    {
3825      abbreviation = 'fdt',
3826      defaults = 'foldtext()',
3827      desc = [=[
3828        An expression which is used to specify the text displayed for a closed
3829        fold.  The context is set to the script where 'foldexpr' was set,
3830        script-local items can be accessed.  See |fold-foldtext| for the
3831        usage.
3832
3833        The expression will be evaluated in the |sandbox| if set from a
3834        modeline, see |sandbox-option|.
3835        This option cannot be set in a modeline when 'modelineexpr' is off.
3836
3837        It is not allowed to change text or jump to another window while
3838        evaluating 'foldtext' |textlock|.
3839
3840        When set to an empty string, foldtext is disabled, and the line
3841        is displayed normally with highlighting and no line wrapping.
3842      ]=],
3843      full_name = 'foldtext',
3844      modelineexpr = true,
3845      redraw = { 'current_window' },
3846      scope = { 'win' },
3847      short_desc = N_('expression used to display for a closed fold'),
3848      type = 'expr',
3849    },
3850    {
3851      cb = 'did_set_follow',
3852      defaults = false,
3853      desc = [=[
3854        Enables |multicursor| follow-mode: cursor-relative motions performed
3855        by the primary cursor, cascade to all cursors |mcursor|.  Toggled by
3856        |q=| (buffer-local).
3857      ]=],
3858      full_name = 'follow',
3859      scope = { 'buf' },
3860      short_desc = N_('multicursor: motions cascade to all cursors'),
3861      type = 'boolean',
3862      varname = 'p_follow',
3863    },
3864    {
3865      abbreviation = 'fex',
3866      defaults = '',
3867      desc = [=[
3868        Expression which is evaluated to format a range of lines for the |gq|
3869        operator or automatic formatting (see 'formatoptions').  When this
3870        option is empty 'formatprg' is used.
3871
3872        The |v:lnum|  variable holds the first line to be formatted.
3873        The |v:count| variable holds the number of lines to be formatted.
3874        The |v:char|  variable holds the character that is going to be
3875        	      inserted if the expression is being evaluated due to
3876        	      automatic formatting.  This can be empty.  Don't insert
3877        	      it yet!
3878
3879        Example: >vim
3880        	set formatexpr=mylang#Format()
3881        <	This will invoke the mylang#Format() function in the
3882        autoload/mylang.vim file in 'runtimepath'. |autoload|
3883
3884        The advantage of using a function call without arguments is that it is
3885        faster, see |expr-option-function|.
3886
3887        The expression is also evaluated when 'textwidth' is set and adding
3888        text beyond that limit.  This happens under the same conditions as
3889        when internal formatting is used.  Make sure the cursor is kept in the
3890        same spot relative to the text then!  The |mode()| function will
3891        return "i" or "R" in this situation.
3892
3893        When the expression evaluates to non-zero Vim will fall back to using
3894        the internal format mechanism.
3895
3896        If the expression starts with s: or |<SID>|, then it is replaced with
3897        the script ID (|local-function|).  Example: >vim
3898        	set formatexpr=s:MyFormatExpr()
3899        	set formatexpr=<SID>SomeFormatExpr()
3900        <	Otherwise, the expression is evaluated in the context of the script
3901        where the option was set, thus script-local items are available.
3902
3903        The expression will be evaluated in the |sandbox| when set from a
3904        modeline, see |sandbox-option|.  That stops the option from working,
3905        since changing the buffer text is not allowed.
3906        This option cannot be set in a modeline when 'modelineexpr' is off.
3907      ]=],
3908      full_name = 'formatexpr',
3909      modelineexpr = true,
3910      scope = { 'buf' },
3911      short_desc = N_('expression used with "gq" command'),
3912      type = 'expr',
3913      varname = 'p_fex',
3914    },
3915    {
3916      abbreviation = 'flp',
3917      defaults = '^\\s*\\d\\+[\\]:.)}\\t ]\\s*',
3918      desc = [=[
3919        A pattern that is used to recognize a list header.  This is used for
3920        the "n" flag in 'formatoptions'.
3921        The pattern must match exactly the text that will be the indent for
3922        the line below it.  You can use |/\ze| to mark the end of the match
3923        while still checking more characters.  There must be a character
3924        following the pattern, when it matches the whole line it is handled
3925        like there is no match.
3926        The default recognizes a number, followed by an optional punctuation
3927        character and white space.
3928      ]=],
3929      full_name = 'formatlistpat',
3930      scope = { 'buf' },
3931      short_desc = N_('pattern used to recognize a list header'),
3932      type = 'string',
3933      varname = 'p_flp',
3934    },
3935    {
3936      abbreviation = 'fo',
3937      validation_cb = 'validate_formatoptions',
3938      defaults = macros('DFLT_FO_VIM', 'string'),
3939      desc = [=[
3940        This is a sequence of letters which describes how automatic
3941        formatting is to be done.
3942        See |fo-table| for possible values and |gq| for how to format text.
3943        Commas can be inserted for readability.
3944        To avoid problems with flags that are added in the future, use the
3945        "+=" and "-=" feature of ":set" |add-option-flags|.
3946      ]=],
3947      expand_cb = 'expand_set_formatoptions',
3948      -- Generates kFo* flag constants (used by has_format_option()). Keep the concatenated set in
3949      -- sync with FO_ALL in option_vars.h.
3950      schema = {
3951        flagchars = {
3952          wrap = 't',
3953          wrap_coms = 'c',
3954          ret_coms = 'r',
3955          open_coms = 'o',
3956          no_open_coms = '/',
3957          q_coms = 'q',
3958          q_number = 'n',
3959          q_second = '2',
3960          ins_vi = 'v',
3961          ins_long = 'l',
3962          ins_blank = 'b',
3963          mbyte_break = 'm', -- break before/after multi-byte char
3964          mbyte_join = 'M', -- no space before/after multi-byte char
3965          mbyte_join2 = 'B', -- no space between multi-byte chars
3966          one_letter = '1',
3967          white_par = 'w', -- trailing white space continues paragr.
3968          auto = 'a', -- automatic formatting
3969          rigorous_tw = ']', -- respect textwidth rigorously
3970          remove_coms = 'j', -- remove comment leaders when joining lines
3971          period_abbr = 'p', -- don't break a single space after a period
3972        },
3973      },
3974      full_name = 'formatoptions',
3975      list = 'flags',
3976      scope = { 'buf' },
3977      short_desc = N_('how automatic formatting is to be done'),
3978      type = 'string',
3979      varname = 'p_fo',
3980    },
3981    {
3982      abbreviation = 'fp',
3983      defaults = '',
3984      desc = [=[
3985        External program used to format lines with |gq|. Ignored if
3986        'formatexpr' is set.
3987
3988        If empty, the internal |C-indenting| function will be used.
3989
3990        The program must take input on stdin and produce output on stdout. The
3991        Unix program "fmt" is such a program. Environment variables are
3992        expanded |:set_env|.  See |option-backslash| about including spaces
3993        and backslashes.
3994      ]=],
3995      expand = true,
3996      full_name = 'formatprg',
3997      scope = { 'global', 'buf' },
3998      secure = true,
3999      short_desc = N_('name of external program used with "gq" command'),
4000      type = 'string',
4001      varname = 'p_fp',
4002    },
4003    {
4004      abbreviation = 'fs',
4005      defaults = true,
4006      desc = [=[
4007        When on, the OS function fsync() will be called after saving a file
4008        (|:write|, |writefile()|, …), |swap-file|, |undo-persistence| and |shada-file|.
4009        This flushes the file to disk, ensuring that it is safely written.
4010        Slow on some systems: writing buffers, quitting Nvim, and other
4011        operations may sometimes take a few seconds.
4012
4013        Files are ALWAYS flushed ('fsync' is ignored) when:
4014        - |CursorHold| event is triggered
4015        - |:preserve| is called
4016        - system signals low battery life
4017        - Nvim exits abnormally
4018
4019        This is a |global-local| option, so it can be set per buffer, for
4020        example when writing to a slow filesystem.
4021      ]=],
4022      full_name = 'fsync',
4023      scope = { 'global', 'buf' },
4024      secure = true,
4025      short_desc = N_('whether to invoke fsync() after file write'),
4026      type = 'boolean',
4027      varname = 'p_fs',
4028    },
4029    {
4030      abbreviation = 'gd',
4031      defaults = false,
4032      full_name = 'gdefault',
4033      scope = { 'global' },
4034      short_desc = N_('Deprecated'),
4035      type = 'boolean',
4036      varname = 'p_gd',
4037    },
4038    {
4039      abbreviation = 'gfm',
4040      defaults = macros('DFLT_GREPFORMAT', 'string'),
4041      deny_duplicates = true,
4042      desc = [=[
4043        Format to recognize for the ":grep" command output.
4044        This is a scanf-like string that uses the same format as the
4045        'errorformat' option: see |errorformat|.
4046
4047        Defaults to "%f:%l:%c:%m" if ripgrep ('grepprg') is available.
4048      ]=],
4049      full_name = 'grepformat',
4050      list = 'onecomma',
4051      scope = { 'global', 'buf' },
4052      short_desc = N_("format of 'grepprg' output"),
4053      type = 'string',
4054      varname = 'p_gefm',
4055    },
4056    {
4057      abbreviation = 'gp',
4058      defaults = {
4059        condition = 'MSWIN',
4060        if_false = 'grep -HIn $* /dev/null',
4061        if_true = 'findstr /n $* nul',
4062        doc = [[see below]],
4063      },
4064      desc = [=[
4065        Program to use for the |:grep| command.
4066        Note: if you change this then you must also update 'grepformat'.
4067
4068        May contain "%" and "#" characters, are expanded per |cmdline-special|.
4069        The placeholder "$*" specifies where the arguments will be included.
4070        Environment variables are expanded |:set_env|.  See |option-backslash|
4071        about including spaces and backslashes.
4072
4073        Special value: When 'grepprg' is set to "internal" the |:grep| command
4074        works like |:vimgrep|, |:lgrep| like |:lvimgrep|, |:grepadd| like
4075        |:vimgrepadd| and |:lgrepadd| like |:lvimgrepadd|.
4076
4077        See also |:make_makeprg|, most of the comments there apply to 'grepprg'.
4078
4079        Defaults to:
4080        - "rg --vimgrep -uu " if ripgrep is available (|:checkhealth|),
4081        - "grep -HIn $* /dev/null" on Unix,
4082        - "findstr /n $* nul" on Windows.
4083
4084        Ripgrep may perform additional filtering such as using .gitignore rules
4085        and skipping hidden files. This is disabled by default (via "-u") to
4086        more closely match the behaviour of standard grep.
4087        You can make ripgrep match Vim's case handling using the
4088        -i/--ignore-case and -S/--smart-case options. Handle |OptionSet| to
4089        dynamically update 'grepprg' when e.g. 'ignorecase' is changed.
4090      ]=],
4091      expand = true,
4092      full_name = 'grepprg',
4093      scope = { 'global', 'buf' },
4094      secure = true,
4095      short_desc = N_('program to use for ":grep"'),
4096      type = 'string',
4097      varname = 'p_gp',
4098    },
4099    {
4100      abbreviation = 'gcr',
4101      cb = 'did_set_guicursor',
4102      defaults = 'n-v-c-sm:block,i-ci-ve:ver25,r-cr-o:hor20,t:block-blinkon500-blinkoff500-TermCursor',
4103      deny_duplicates = true,
4104      desc = [=[
4105        Configures the cursor style for each mode. Works in the GUI and many
4106        terminals.  See |tui-cursor-shape|.
4107
4108        To disable cursor-styling, reset the option: >vim
4109        	set guicursor=
4110
4111        <	To enable mode shapes, "Cursor" highlight, and blinking: >vim
4112        	set guicursor=n-v-c:block,i-ci-ve:ver25,r-cr:hor20,o:hor50
4113        	  \,a:blinkwait700-blinkoff400-blinkon250-Cursor/lCursor
4114        	  \,sm:block-blinkwait175-blinkoff150-blinkon175
4115
4116        <	The option is a comma-separated list of parts.  Each part consists of a
4117        mode-list and an argument-list:
4118        	mode-list:argument-list,mode-list:argument-list,..
4119        The mode-list is a dash separated list of these modes:
4120        	n	Normal mode
4121        	v	Visual mode
4122        	ve	Visual mode with 'selection' "exclusive" (same as 'v',
4123        		if not specified)
4124        	o	Operator-pending mode
4125        	i	Insert mode
4126        	r	Replace mode
4127        	c	Command-line Normal (append) mode
4128        	ci	Command-line Insert mode
4129        	cr	Command-line Replace mode
4130        	sm	showmatch in Insert mode
4131        	t	Terminal mode
4132        	a	all modes
4133        The argument-list is a dash separated list of these arguments:
4134        	hor{N}	horizontal bar, {N} percent of the character height
4135        	ver{N}	vertical bar, {N} percent of the character width
4136        	block	block cursor, fills the whole character
4137        		- Only one of the above three should be present.
4138        		- Default is "block" for each mode.
4139        	blinkwait{N}				*cursor-blinking*
4140        	blinkon{N}
4141        	blinkoff{N}
4142        		blink times for cursor: blinkwait is the delay before
4143        		the cursor starts blinking, blinkon is the time that
4144        		the cursor is shown and blinkoff is the time that the
4145        		cursor is not shown.  Times are in msec.  When one of
4146        		the numbers is zero, there is no blinking. E.g.: >vim
4147        			set guicursor=n:blinkon0
4148        <
4149        		Default is "blinkon0" for each mode.
4150        	{group-name}
4151        		Highlight group that decides the color and font of the
4152        		cursor.
4153        		In the |TUI|:
4154        		- |inverse|/reverse and no group-name are interpreted
4155        		  as "host-terminal default cursor colors" which
4156        		  typically means "inverted bg and fg colors".
4157        		- |ctermfg| and |guifg| are ignored.
4158        	{group-name}/{group-name}
4159        		Two highlight group names, the first is used when
4160        		no language mappings are used, the other when they
4161        		are. |language-mapping|
4162
4163        Examples of parts:
4164           n-c-v:block-nCursor	In Normal, Command-line and Visual mode, use a
4165        			block cursor with colors from the "nCursor"
4166        			highlight group
4167           n-v-c-sm:block,i-ci-ve:ver25-Cursor,r-cr-o:hor20
4168        			In Normal et al. modes, use a block cursor
4169        			with the default colors defined by the host
4170        			terminal.  In Insert-like modes, use
4171        			a vertical bar cursor with colors from
4172        			"Cursor" highlight group.  In Replace-like
4173        			modes, use an underline cursor with
4174        			default colors.
4175           i-ci:ver30-iCursor-blinkwait300-blinkon200-blinkoff150
4176        			In Insert and Command-line Insert mode, use a
4177        			30% vertical bar cursor with colors from the
4178        			"iCursor" highlight group.  Blink a bit
4179        			faster.
4180
4181        The 'a' mode is different.  It will set the given argument-list for
4182        all modes.  It does not reset anything to defaults.  This can be used
4183        to do a common setting for all modes.  For example, to switch off
4184        blinking: "a:blinkon0"
4185
4186        Examples of cursor highlighting: >vim
4187            highlight Cursor gui=reverse guifg=NONE guibg=NONE
4188            " Note: gui=reverse overrides colors.
4189            highlight Cursor gui=NONE guifg=bg guibg=fg
4190        <
4191      ]=],
4192      full_name = 'guicursor',
4193      list = 'onecomma',
4194      scope = { 'global' },
4195      short_desc = N_('GUI: settings for cursor shape and blinking'),
4196      tags = { 'E545', 'E546', 'E548', 'E549' },
4197      type = 'string',
4198      varname = 'p_guicursor',
4199    },
4200    {
4201      abbreviation = 'gfn',
4202      defaults = {
4203        if_true = macros('DFLT_GFN', 'string'),
4204        doc = [["DejaVu Sans Mono,Courier New,monospace"
4205          Mac: "SF Mono,Menlo,Monaco,Courier New,monospace"
4206          Linux: "Source Code Pro,DejaVu Sans Mono,Courier New,monospace"
4207          MS-Windows: "Cascadia Code,Cascadia Mono,Consolas,Courier New,monospace"]],
4208        meta = 'DFLT_GFN',
4209      },
4210      desc = [=[
4211        This is a list of fonts which will be used for the GUI version of Vim.
4212        In its simplest form the value is just one font name.  When
4213        the font cannot be found you will get an error message.  To try other
4214        font names a list can be specified, font names separated with commas.
4215        The first valid font is used.
4216
4217        Spaces after a comma are ignored.  To include a comma in a font name
4218        precede it with a backslash.  Setting an option requires an extra
4219        backslash before a space and a backslash.  See also
4220        |option-backslash|.  For example: >vim
4221            set guifont=Screen15,\ 7x13,font\\,with\\,commas
4222        <	will make Vim try to use the font "Screen15" first, and if it fails it
4223        will try to use "7x13" and then "font,with,commas" instead.
4224
4225        If none of the fonts can be loaded, Vim will keep the current setting.
4226        If an empty font list is given, Vim will try using other resource
4227        settings (for X, it will use the Vim.font resource), and finally it
4228        will try some builtin default which should always be there ("7x13" in
4229        the case of X).  The font names given should be "normal" fonts.  Vim
4230        will try to find the related bold and italic fonts.
4231
4232        For Win32 and Mac OS: >vim
4233            set guifont=*
4234        <	will bring up a font requester, where you can pick the font you want.
4235
4236        The font name depends on the GUI used.
4237
4238        For Mac OSX you can use something like this: >vim
4239            set guifont=Monaco:h10
4240        <								*E236*
4241        Note that the fonts must be mono-spaced (all characters have the same
4242        width).
4243
4244        To preview a font on X11, you might be able to use the "xfontsel"
4245        program.  The "xlsfonts" program gives a list of all available fonts.
4246
4247        For the Win32 GUI					*E244* *E245*
4248        - takes these options in the font name:
4249        	hXX - height is XX (points, can be floating-point)
4250        	wXX - width is XX (points, can be floating-point)
4251        	b   - bold
4252        	i   - italic
4253        	u   - underline
4254        	s   - strikeout
4255        	cXX - character set XX.  Valid charsets are: ANSI, ARABIC,
4256        	      BALTIC, CHINESEBIG5, DEFAULT, EASTEUROPE, GB2312, GREEK,
4257        	      HANGEUL, HEBREW, JOHAB, MAC, OEM, RUSSIAN, SHIFTJIS,
4258        	      SYMBOL, THAI, TURKISH, VIETNAMESE ANSI and BALTIC.
4259        	      Normally you would use "cDEFAULT".
4260
4261          Use a ':' to separate the options.
4262        - A '_' can be used in the place of a space, so you don't need to use
4263          backslashes to escape the spaces.
4264        - Examples: >vim
4265            set guifont=courier_new:h12:w5:b:cRUSSIAN
4266            set guifont=Andale_Mono:h7.5:w4.5
4267        <
4268      ]=],
4269      deny_duplicates = true,
4270      full_name = 'guifont',
4271      list = 'onecomma',
4272      redraw = { 'ui_option' },
4273      scope = { 'global' },
4274      short_desc = N_('GUI: Name(s) of font(s) to be used'),
4275      tags = { 'E235', 'E596' },
4276      type = 'string',
4277      varname = 'p_guifont',
4278    },
4279    {
4280      abbreviation = 'gfw',
4281      defaults = '',
4282      deny_duplicates = true,
4283      desc = [=[
4284        Comma-separated list of fonts to be used for double-width characters.
4285        The first font that can be loaded is used.
4286        Note: The size of these fonts must be exactly twice as wide as the one
4287        specified with 'guifont' and the same height.
4288
4289        When 'guifont' has a valid font and 'guifontwide' is empty Vim will
4290        attempt to set 'guifontwide' to a matching double-width font.
4291      ]=],
4292      full_name = 'guifontwide',
4293      list = 'onecomma',
4294      redraw = { 'ui_option' },
4295      scope = { 'global' },
4296      short_desc = N_('list of font names for double-wide characters'),
4297      tags = { 'E231', 'E533', 'E534' },
4298      type = 'string',
4299      varname = 'p_guifontwide',
4300    },
4301    {
4302      abbreviation = 'go',
4303      defaults = {
4304        if_true = '',
4305        doc = '"egmrLT"   (MS-Windows)',
4306      },
4307      desc = [=[
4308        This option only has an effect in the GUI version of Vim.  It is a
4309        sequence of letters which describes what components and options of the
4310        GUI should be used.
4311        To avoid problems with flags that are added in the future, use the
4312        "+=" and "-=" feature of ":set" |add-option-flags|.
4313
4314        Valid letters are as follows:
4315        						*guioptions_a* *'go-a'*
4316          'a'	Autoselect:  If present, then whenever VISUAL mode is started,
4317        	or the Visual area extended, Vim tries to become the owner of
4318        	the windowing system's global selection.  This means that the
4319        	Visually highlighted text is available for pasting into other
4320        	applications as well as into Vim itself.  When the Visual mode
4321        	ends, possibly due to an operation on the text, or when an
4322        	application wants to paste the selection, the highlighted text
4323        	is automatically yanked into the "* selection register.
4324        	Thus the selection is still available for pasting into other
4325        	applications after the VISUAL mode has ended.
4326        	    If not present, then Vim won't become the owner of the
4327        	windowing system's global selection unless explicitly told to
4328        	by a yank or delete operation for the "* register.
4329        	The same applies to the modeless selection.
4330        							*'go-P'*
4331          'P'	Like autoselect but using the "+ register instead of the "*
4332        	register.
4333        							*'go-A'*
4334          'A'	Autoselect for the modeless selection.  Like 'a', but only
4335        	applies to the modeless selection.
4336
4337        	    'guioptions'   autoselect Visual  autoselect modeless ~
4338        		 ""		 -			 -
4339        		 "a"		yes			yes
4340        		 "A"		 -			yes
4341        		 "aA"		yes			yes
4342
4343        							*'go-c'*
4344          'c'	Use console dialogs instead of popup dialogs for simple
4345        	choices.
4346        							*'go-d'*
4347          'd'	Use dark theme variant if available.
4348        							*'go-e'*
4349          'e'	Add tabpages when indicated with 'showtabline'.
4350        	'guitablabel' can be used to change the text in the labels.
4351        	When 'e' is missing a non-GUI tabpages line may be used.
4352        	The GUI tabs are only supported on some systems, currently
4353        	Mac OS/X and MS-Windows.
4354        							*'go-i'*
4355          'i'	Use a Vim icon.
4356        							*'go-m'*
4357          'm'	Menu bar is present.
4358        							*'go-M'*
4359          'M'	The system menu "$VIMRUNTIME/menu.vim" is not sourced.  Note
4360        	that this flag must be added in the vimrc file, before
4361        	switching on syntax or filetype recognition (when the |gvimrc|
4362        	file is sourced the system menu has already been loaded; the
4363        	`:syntax on` and `:filetype on` commands load the menu too).
4364        							*'go-g'*
4365          'g'	Grey menu items: Make menu items that are not active grey.  If
4366        	'g' is not included inactive menu items are not shown at all.
4367        							*'go-T'*
4368          'T'	Include Toolbar.  Currently only in Win32 GUI.
4369        							*'go-r'*
4370          'r'	Right-hand scrollbar is always present.
4371        							*'go-R'*
4372          'R'	Right-hand scrollbar is present when there is a vertically
4373        	split window.
4374        							*'go-l'*
4375          'l'	Left-hand scrollbar is always present.
4376        							*'go-L'*
4377          'L'	Left-hand scrollbar is present when there is a vertically
4378        	split window.
4379        							*'go-b'*
4380          'b'	Bottom (horizontal) scrollbar is present.  Its size depends on
4381        	the longest visible line, or on the cursor line if the 'h'
4382        	flag is included. |gui-horiz-scroll|
4383        							*'go-h'*
4384          'h'	Limit horizontal scrollbar size to the length of the cursor
4385        	line.  Reduces computations. |gui-horiz-scroll|
4386
4387        And yes, you may even have scrollbars on the left AND the right if
4388        you really want to :-).  See |gui-scrollbars| for more information.
4389
4390        							*'go-v'*
4391          'v'	Use a vertical button layout for dialogs.  When not included,
4392        	a horizontal layout is preferred, but when it doesn't fit a
4393        	vertical layout is used anyway.  Not supported in GTK 3.
4394        							*'go-p'*
4395          'p'	Use Pointer callbacks for X11 GUI.  This is required for some
4396        	window managers.  If the cursor is not blinking or hollow at
4397        	the right moment, try adding this flag.  This must be done
4398        	before starting the GUI.  Set it in your |gvimrc|.  Adding or
4399        	removing it after the GUI has started has no effect.
4400        							*'go-k'*
4401          'k'	Keep the GUI window size when adding/removing a scrollbar, or
4402        	toolbar, tabline, etc.  Instead, the behavior is similar to
4403        	when the window is maximized and will adjust 'lines' and
4404        	'columns' to fit to the window.  Without the 'k' flag Vim will
4405        	try to keep 'lines' and 'columns' the same when adding and
4406        	removing GUI components.
4407      ]=],
4408      full_name = 'guioptions',
4409      list = 'flags',
4410      scope = { 'global' },
4411      short_desc = N_('GUI: Which components and options are used'),
4412      type = 'string',
4413      immutable = true,
4414    },
4415    {
4416      abbreviation = 'gtl',
4417      defaults = '',
4418      desc = [=[
4419        When non-empty describes the text to use in a label of the GUI
4420        tabpages line.  When empty and when the result is empty Vim will use
4421        a default label.  See |setting-guitablabel| for more info.
4422
4423        The format of this option is like that of 'statusline'.
4424        'guitabtooltip' is used for the tooltip, see below.
4425        The expression will be evaluated in the |sandbox| when set from a
4426        modeline, see |sandbox-option|.
4427        This option cannot be set in a modeline when 'modelineexpr' is off.
4428
4429        Only used when the GUI tabpages line is displayed.  'e' must be
4430        present in 'guioptions'.  For the non-GUI tabpages line 'tabline' is
4431        used.
4432      ]=],
4433      full_name = 'guitablabel',
4434      modelineexpr = true,
4435      redraw = { 'current_window' },
4436      scope = { 'global' },
4437      short_desc = N_('GUI: custom label for a tabpage'),
4438      type = 'string',
4439      immutable = true,
4440    },
4441    {
4442      abbreviation = 'gtt',
4443      defaults = '',
4444      desc = [=[
4445        When non-empty describes the text to use in a tooltip for the GUI
4446        tabpages line.  When empty Vim will use a default tooltip.
4447        This option is otherwise just like 'guitablabel' above.
4448        You can include a line break.  Simplest method is to use |:let|: >vim
4449        	let &guitabtooltip = "line one\nline two"
4450        <
4451        This option cannot be set in a modeline when 'modelineexpr' is off.
4452      ]=],
4453      full_name = 'guitabtooltip',
4454      modelineexpr = true,
4455      redraw = { 'current_window' },
4456      scope = { 'global' },
4457      short_desc = N_('GUI: custom tooltip for a tabpage'),
4458      type = 'string',
4459      immutable = true,
4460    },
4461    {
4462      abbreviation = 'hf',
4463      cb = 'did_set_helpfile',
4464      defaults = {
4465        if_true = macros('DFLT_HELPFILE', 'string'),
4466        doc = [["$VIMRUNTIME/doc/help.txt"]],
4467      },
4468      desc = [=[
4469        Name of the main help file.  All distributed help files should be
4470        placed together in one directory.  Additionally, all "doc" directories
4471        in 'runtimepath' will be used.
4472        Environment variables are expanded |:set_env|.  For example:
4473        "$VIMRUNTIME/doc/help.txt".  If $VIMRUNTIME is not set, $VIM is also
4474        tried.  Also see |$VIMRUNTIME| and |option-backslash| about including
4475        spaces and backslashes.
4476      ]=],
4477      expand = true,
4478      full_name = 'helpfile',
4479      scope = { 'global' },
4480      secure = true,
4481      short_desc = N_('full path name of the main help file'),
4482      type = 'string',
4483      varname = 'p_hf',
4484    },
4485    {
4486      abbreviation = 'hh',
4487      cb = 'did_set_helpheight',
4488      defaults = 20,
4489      desc = [=[
4490        Minimal initial height of the help window when it is opened with the
4491        ":help" command.  The initial height of the help window is half of the
4492        current window, or (when the 'ea' option is on) the same as other
4493        windows.  When the height is less than 'helpheight', the height is
4494        set to 'helpheight'.  Set to zero to disable.
4495      ]=],
4496      full_name = 'helpheight',
4497      scope = { 'global' },
4498      short_desc = N_('minimum height of a new help window'),
4499      type = 'number',
4500      varname = 'p_hh',
4501    },
4502    {
4503      abbreviation = 'hlg',
4504      validation_cb = 'validate_helplang',
4505      defaults = {
4506        if_true = '',
4507        doc = 'messages language or empty',
4508      },
4509      deny_duplicates = true,
4510      desc = [=[
4511        Comma-separated list of languages.  Vim will use the first language
4512        for which the desired help can be found.  The English help will always
4513        be used as a last resort.  You can add "en" to prefer English over
4514        another language, but that will only find tags that exist in that
4515        language and not in the English help.
4516        Example: >vim
4517        	set helplang=de,it
4518        <	This will first search German, then Italian and finally English help
4519        files.
4520        When using |CTRL-]| and ":help!" in a non-English help file Vim will
4521        try to find the tag in the current language before using this option.
4522        See |help-translated|.
4523      ]=],
4524      full_name = 'helplang',
4525      list = 'onecomma',
4526      scope = { 'global' },
4527      short_desc = N_('preferred help languages'),
4528      type = 'string',
4529      varname = 'p_hlg',
4530    },
4531    {
4532      abbreviation = 'hid',
4533      defaults = true,
4534      desc = [=[
4535        When off a buffer is unloaded (including loss of undo information)
4536        when it is |abandon|ed.  When on a buffer becomes hidden when it is
4537        |abandon|ed.  A buffer displayed in another window does not become
4538        hidden, of course.
4539
4540        Commands that move through the buffer list sometimes hide a buffer
4541        although the 'hidden' option is off when these three are true:
4542        - the buffer is modified
4543        - 'autowrite' is off or writing is not possible
4544        - the '!' flag was used
4545        Also see |windows|.
4546
4547        To hide a specific buffer use the 'bufhidden' option.
4548        'hidden' is set for one command with ":hide {command}" |:hide|.
4549      ]=],
4550      full_name = 'hidden',
4551      scope = { 'global' },
4552      short_desc = N_("don't unload buffer when it is |abandon|ed"),
4553      type = 'boolean',
4554      varname = 'p_hid',
4555    },
4556    {
4557      abbreviation = 'hl',
4558      validation_cb = 'validate_highlight',
4559      defaults = macros('HIGHLIGHT_INIT', 'string'),
4560      deny_duplicates = true,
4561      full_name = 'highlight',
4562      list = 'onecomma',
4563      scope = { 'global' },
4564      short_desc = N_('sets highlighting mode for various occasions'),
4565      type = 'string',
4566      varname = 'p_hl',
4567    },
4568    {
4569      abbreviation = 'hi',
4570      defaults = 10000,
4571      desc = [=[
4572        A history of ":" commands, and a history of previous search patterns
4573        is remembered.  This option decides how many entries may be stored in
4574        each of these histories (see |cmdline-editing| and 'messagesopt' for
4575        the number of messages to remember).
4576        The maximum value is 10000.
4577      ]=],
4578      full_name = 'history',
4579      scope = { 'global' },
4580      short_desc = N_('number of command-lines that are remembered'),
4581      type = 'number',
4582      varname = 'p_hi',
4583    },
4584    {
4585      abbreviation = 'hk',
4586      defaults = false,
4587      full_name = 'hkmap',
4588      scope = { 'global' },
4589      short_desc = N_('Deprecated'),
4590      type = 'boolean',
4591      immutable = true,
4592    },
4593    {
4594      abbreviation = 'hkp',
4595      defaults = false,
4596      full_name = 'hkmapp',
4597      scope = { 'global' },
4598      short_desc = N_('Deprecated'),
4599      type = 'boolean',
4600      immutable = true,
4601    },
4602    {
4603      abbreviation = 'hls',
4604      cb = 'did_set_hlsearch',
4605      defaults = true,
4606      desc = [=[
4607        When there is a previous search pattern, highlight all its matches.
4608        The |hl-Search| highlight group determines the highlighting for all
4609        matches not under the cursor while the |hl-CurSearch| highlight group
4610        (if defined) determines the highlighting for the match under the
4611        cursor. If |hl-CurSearch| is not defined, then |hl-Search| is used for
4612        both. Note that only the matching text is highlighted, any offsets
4613        are not applied.
4614        See also: 'incsearch' and |:match|.
4615        When you get bored looking at the highlighted matches, you can turn it
4616        off with |:nohlsearch|.  This does not change the option value, as
4617        soon as you use a search command, the highlighting comes back.
4618        'redrawtime' specifies the maximum time spent on finding matches.
4619        When the search pattern can match an end-of-line, Vim will try to
4620        highlight all of the matched text.  However, this depends on where the
4621        search starts.  This will be the first line in the window or the first
4622        line below a closed fold.  A match in a previous line which is not
4623        drawn may not continue in a newly drawn line.
4624        You can specify whether the highlight status is restored on startup
4625        with the 'h' flag in 'shada' |shada-h|.
4626      ]=],
4627      full_name = 'hlsearch',
4628      redraw = { 'all_windows', 'highlight_only' },
4629      scope = { 'global' },
4630      short_desc = N_('highlight matches with last search pattern'),
4631      type = 'boolean',
4632      varname = 'p_hls',
4633    },
4634    {
4635      cb = 'did_set_title_icon',
4636      defaults = {
4637        if_true = false,
4638        doc = 'off, on when title can be restored',
4639      },
4640      desc = [=[
4641        When on, the icon text of the window will be set to the value of
4642        'iconstring' (if it is not empty), or to the name of the file
4643        currently being edited.  Only the last part of the name is used.
4644        Overridden by the 'iconstring' option.
4645        Only works if the terminal supports setting window icons.
4646      ]=],
4647      full_name = 'icon',
4648      scope = { 'global' },
4649      short_desc = N_('Vim set the text of the window icon'),
4650      type = 'boolean',
4651      varname = 'p_icon',
4652    },
4653    {
4654      cb = 'did_set_iconstring',
4655      defaults = '',
4656      desc = [=[
4657        When this option is not empty, it will be used for the icon text of
4658        the window.  This happens only when the 'icon' option is on.
4659        Only works if the terminal supports setting window icon text
4660        When this option contains printf-style '%' items, they will be
4661        expanded according to the rules used for 'statusline'.  See
4662        'titlestring' for example settings.
4663        This option cannot be set in a modeline when 'modelineexpr' is off.
4664      ]=],
4665      full_name = 'iconstring',
4666      modelineexpr = true,
4667      scope = { 'global' },
4668      short_desc = N_('to use for the Vim icon text'),
4669      type = 'string',
4670      varname = 'p_iconstring',
4671    },
4672    {
4673      abbreviation = 'ic',
4674      cb = 'did_set_ignorecase',
4675      defaults = false,
4676      desc = [=[
4677        Ignore case in search patterns, |cmdline-completion|, when
4678        searching in the tags file, |expr-==| and for Insert-mode completion
4679        |ins-completion|.
4680        Also see 'smartcase' and 'tagcase'.
4681        Can be overruled by using "\c" or "\C" in the pattern, see
4682        |/ignorecase|.
4683      ]=],
4684      full_name = 'ignorecase',
4685      scope = { 'global' },
4686      short_desc = N_('ignore case in search patterns'),
4687      type = 'boolean',
4688      varname = 'p_ic',
4689    },
4690    {
4691      abbreviation = 'imc',
4692      defaults = false,
4693      desc = [=[
4694        When set the Input Method is always on when starting to edit a command
4695        line, unless entering a search pattern (see 'imsearch' for that).
4696        Setting this option is useful when your input method allows entering
4697        English characters directly, e.g., when it's used to type accented
4698        characters with dead keys.
4699      ]=],
4700      full_name = 'imcmdline',
4701      scope = { 'global' },
4702      short_desc = N_('use IM when starting to edit a command line'),
4703      type = 'boolean',
4704      immutable = true,
4705    },
4706    {
4707      abbreviation = 'imd',
4708      defaults = {
4709        if_true = false,
4710        doc = 'off, on for some systems (SGI)',
4711      },
4712      desc = [=[
4713        When set the Input Method is never used.  This is useful to disable
4714        the IM when it doesn't work properly.
4715        Currently this option is on by default for SGI/IRIX machines.  This
4716        may change in later releases.
4717      ]=],
4718      full_name = 'imdisable',
4719      scope = { 'global' },
4720      short_desc = N_('do not use the IM in any mode'),
4721      type = 'boolean',
4722      immutable = true,
4723    },
4724    {
4725      abbreviation = 'imi',
4726      cb = 'did_set_iminsert',
4727      defaults = macros('B_IMODE_NONE', 'number'),
4728      desc = [=[
4729        Specifies whether :lmap or an Input Method (IM) is to be used in
4730        Insert mode.  Valid values:
4731        	0	:lmap is off and IM is off
4732        	1	:lmap is ON and IM is off
4733        	2	:lmap is off and IM is ON
4734        To always reset the option to zero when leaving Insert mode with <Esc>
4735        this can be used: >vim
4736        	inoremap <ESC> <ESC>:set iminsert=0<CR>
4737        <	This makes :lmap and IM turn off automatically when leaving Insert
4738        mode.
4739        Note that this option changes when using CTRL-^ in Insert mode
4740        |i_CTRL-^|.
4741        The value is set to 1 when setting 'keymap' to a valid keymap name.
4742        It is also used for the argument of commands like "r" and "f".
4743      ]=],
4744      full_name = 'iminsert',
4745      scope = { 'buf' },
4746      short_desc = N_('use :lmap or IM in Insert mode'),
4747      type = 'number',
4748      varname = 'p_iminsert',
4749    },
4750    {
4751      abbreviation = 'ims',
4752      defaults = macros('B_IMODE_USE_INSERT', 'number'),
4753      desc = [=[
4754        Specifies whether :lmap or an Input Method (IM) is to be used when
4755        entering a search pattern.  Valid values:
4756        	-1	the value of 'iminsert' is used, makes it look like
4757        		'iminsert' is also used when typing a search pattern
4758        	0	:lmap is off and IM is off
4759        	1	:lmap is ON and IM is off
4760        	2	:lmap is off and IM is ON
4761        Note that this option changes when using CTRL-^ in Command-line mode
4762        |c_CTRL-^|.
4763        The value is set to 1 when it is not -1 and setting the 'keymap'
4764        option to a valid keymap name.
4765      ]=],
4766      full_name = 'imsearch',
4767      scope = { 'buf' },
4768      short_desc = N_('use :lmap or IM when typing a search pattern'),
4769      type = 'number',
4770      varname = 'p_imsearch',
4771    },
4772    {
4773      abbreviation = 'icm',
4774      cb = 'did_set_inccommand',
4775      validation_cb = 'validate_str_generic',
4776      defaults = 'nosplit',
4777      schema = {
4778        enum = { 'nosplit', 'split', '' },
4779      },
4780      desc = [=[
4781        When nonempty, shows the effects of |:substitute|, |:smagic|,
4782        |:snomagic| and user commands with the |:command-preview| flag as you
4783        type.
4784
4785        Possible values:
4786        	nosplit	Shows the effects of a command incrementally in the
4787        		buffer.
4788        	split	Like "nosplit", but also shows partial off-screen
4789        		results in a preview window.
4790
4791        If the preview for built-in commands is too slow (exceeds
4792        'redrawtime') then 'inccommand' is automatically disabled until
4793        |Command-line-mode| is done.
4794      ]=],
4795      full_name = 'inccommand',
4796      scope = { 'global' },
4797      short_desc = N_('Live preview of substitution'),
4798      type = 'string',
4799      varname = 'p_icm',
4800    },
4801    {
4802      abbreviation = 'inc',
4803      defaults = '',
4804      desc = [=[
4805        Pattern to be used to find an include command.  It is a search
4806        pattern, just like for the "/" command (See |pattern|).  This option
4807        is used for the commands "[i", "]I", "[d", etc.
4808        Normally the 'isfname' option is used to recognize the file name that
4809        comes after the matched pattern.  But if "\zs" appears in the pattern
4810        then the text matched from "\zs" to the end, or until "\ze" if it
4811        appears, is used as the file name.  Use this to include characters
4812        that are not in 'isfname', such as a space.  You can then use
4813        'includeexpr' to process the matched text.
4814        See |option-backslash| about including spaces and backslashes.
4815      ]=],
4816      full_name = 'include',
4817      scope = { 'global', 'buf' },
4818      short_desc = N_('pattern to be used to find an include file'),
4819      type = 'string',
4820      varname = 'p_inc',
4821    },
4822    {
4823      abbreviation = 'inex',
4824      defaults = '',
4825      desc = [=[
4826        Expression to be used to transform the string found with the 'include'
4827        option to a file name.  Mostly useful to change "." to "/" for Java: >vim
4828        	setlocal includeexpr=substitute(v:fname,'\\.','/','g')
4829        <	The "v:fname" variable will be set to the file name that was detected.
4830        Note the double backslash: the `:set` command first halves them, then
4831        one remains in the value, where "\." matches a dot literally.  For
4832        simple character replacements `tr()` avoids the need for escaping: >vim
4833        	setlocal includeexpr=tr(v:fname,'.','/')
4834        <
4835        Also used for the |gf| command if an unmodified file name can't be
4836        found.  Allows doing "gf" on the name after an 'include' statement.
4837        Note: Not used for |<cfile>|.
4838
4839        If the expression starts with s: or |<SID>|, then it is replaced with
4840        the script ID (|local-function|).  Example: >vim
4841        	setlocal includeexpr=s:MyIncludeExpr()
4842        	setlocal includeexpr=<SID>SomeIncludeExpr()
4843        <	Otherwise, the expression is evaluated in the context of the script
4844        where the option was set, thus script-local items are available.
4845
4846        It is more efficient if the value is just a function call without
4847        arguments, see |expr-option-function|.
4848
4849        The expression will be evaluated in the |sandbox| when set from a
4850        modeline, see |sandbox-option|.
4851        This option cannot be set in a modeline when 'modelineexpr' is off.
4852
4853        It is not allowed to change text or jump to another window while
4854        evaluating 'includeexpr' |textlock|.
4855      ]=],
4856      full_name = 'includeexpr',
4857      modelineexpr = true,
4858      scope = { 'buf' },
4859      short_desc = N_('expression used to process an include line'),
4860      type = 'expr',
4861      varname = 'p_inex',
4862    },
4863    {
4864      abbreviation = 'is',
4865      defaults = true,
4866      desc = [=[
4867        While typing a search command, show where the pattern, as it was typed
4868        so far, matches.  The matched string is highlighted.  If the pattern
4869        is invalid or not found, nothing is shown.  The screen will be updated
4870        often, this is only useful on fast terminals.
4871        Note that the match will be shown, but the cursor will return to its
4872        original position when no match is found and when pressing <Esc>.  You
4873        still need to finish the search command with <Enter> to move the
4874        cursor to the match.
4875        You can use the CTRL-G and CTRL-T keys to move to the next and
4876        previous match. |c_CTRL-G| |c_CTRL-T|
4877        Vim only searches for about half a second.  With a complicated
4878        pattern and/or a lot of text the match may not be found.  This is to
4879        avoid that Vim hangs while you are typing the pattern.
4880        The |hl-IncSearch| highlight group determines the highlighting.
4881        When 'hlsearch' is on, all matched strings are highlighted too while
4882        typing a search command.  See also: 'hlsearch'.
4883        If you don't want to turn 'hlsearch' on, but want to highlight all
4884        matches while searching, you can turn on and off 'hlsearch' with
4885        autocmd.  Example: >vim
4886        	augroup vimrc-incsearch-highlight
4887        	  autocmd!
4888        	  autocmd CmdlineEnter [\/\?] :set hlsearch
4889        	  autocmd CmdlineLeave [\/\?] :set nohlsearch
4890        	augroup END
4891        <
4892        CTRL-L can be used to add one character from after the current match
4893        to the command line.  If 'ignorecase' and 'smartcase' are set and the
4894        command line has no uppercase characters, the added character is
4895        converted to lowercase.
4896        CTRL-R CTRL-W can be used to add the word at the end of the current
4897        match, excluding the characters that were already typed (starting from
4898        the beginning of the word).
4899      ]=],
4900      full_name = 'incsearch',
4901      scope = { 'global' },
4902      short_desc = N_('highlight match while typing search pattern'),
4903      type = 'boolean',
4904      varname = 'p_is',
4905    },
4906    {
4907      abbreviation = 'inde',
4908      defaults = '',
4909      desc = [=[
4910        Expression which is evaluated to obtain the proper indent for a line.
4911        It is used when a new line is created, for the |=| operator and
4912        in Insert mode as specified with the 'indentkeys' option.
4913        When this option is not empty, it overrules the 'cindent' and
4914        'smartindent' indenting.  When 'lisp' is set, this option is
4915        only used when 'lispoptions' contains "expr:1".
4916        The expression is evaluated with |v:lnum| set to the line number for
4917        which the indent is to be computed.  The cursor is also in this line
4918        when the expression is evaluated (but it may be moved around).
4919
4920        If the expression starts with s: or |<SID>|, then it is replaced with
4921        the script ID (|local-function|).  Example: >vim
4922        	set indentexpr=s:MyIndentExpr()
4923        	set indentexpr=<SID>SomeIndentExpr()
4924        <	Otherwise, the expression is evaluated in the context of the script
4925        where the option was set, thus script-local items are available.
4926
4927        The advantage of using a function call without arguments is that it is
4928        faster, see |expr-option-function|.
4929
4930        The expression must return the number of spaces worth of indent.  It
4931        can return "-1" to keep the current indent (this means 'autoindent' is
4932        used for the indent).
4933        Functions useful for computing the indent are |indent()|, |cindent()|
4934        and |lispindent()|.
4935        The evaluation of the expression must not have side effects!  It must
4936        not change the text, jump to another window, etc.  Afterwards the
4937        cursor position is always restored, thus the cursor may be moved.
4938        Normally this option would be set to call a function: >vim
4939        	set indentexpr=GetMyIndent()
4940        <	Error messages will be suppressed, unless the 'debug' option contains
4941        "msg".
4942        See |indent-expression|.
4943
4944        The expression will be evaluated in the |sandbox| when set from a
4945        modeline, see |sandbox-option|.
4946        This option cannot be set in a modeline when 'modelineexpr' is off.
4947
4948        It is not allowed to change text or jump to another window while
4949        evaluating 'indentexpr' |textlock|.
4950      ]=],
4951      full_name = 'indentexpr',
4952      modelineexpr = true,
4953      scope = { 'buf' },
4954      short_desc = N_('expression used to obtain the indent of a line'),
4955      type = 'expr',
4956      varname = 'p_inde',
4957    },
4958    {
4959      abbreviation = 'indk',
4960      defaults = '0{,0},0),0],:,0#,!^F,o,O,e',
4961      deny_duplicates = true,
4962      desc = [=[
4963        A list of keys that, when typed in Insert mode, cause reindenting of
4964        the current line.  Only happens if 'indentexpr' isn't empty.
4965        The format is identical to 'cinkeys', see |indentkeys-format|.
4966        See |C-indenting| and |indent-expression|.
4967      ]=],
4968      full_name = 'indentkeys',
4969      list = 'onecomma',
4970      scope = { 'buf' },
4971      short_desc = N_("keys that trigger indenting with 'indentexpr'"),
4972      type = 'string',
4973      varname = 'p_indk',
4974    },
4975    {
4976      abbreviation = 'inf',
4977      defaults = false,
4978      desc = [=[
4979        When doing keyword completion in insert mode |ins-completion|, and
4980        'ignorecase' is also on, the case of the match is adjusted depending
4981        on the typed text.  If the typed text contains a lowercase letter
4982        where the match has an upper case letter, the completed part is made
4983        lowercase.  If the typed text has no lowercase letters and the match
4984        has a lowercase letter where the typed text has an uppercase letter,
4985        and there is a letter before it, the completed part is made uppercase.
4986        With 'noinfercase' the match is used as-is.
4987      ]=],
4988      full_name = 'infercase',
4989      scope = { 'buf' },
4990      short_desc = N_('adjust case of match for keyword completion'),
4991      type = 'boolean',
4992      varname = 'p_inf',
4993    },
4994    {
4995      abbreviation = 'im',
4996      defaults = false,
4997      full_name = 'insertmode',
4998      scope = { 'global' },
4999      short_desc = N_('Deprecated'),
5000      type = 'boolean',
5001      immutable = true,
5002    },
5003    {
5004      abbreviation = 'isf',
5005      cb = 'did_set_isopt',
5006      validation_cb = 'validate_isopt',
5007      defaults = {
5008        condition = 'BACKSLASH_IN_FILENAME',
5009        if_false = '@,48-57,/,.,-,_,+,,,#,$,%,~,=',
5010        if_true = '@,48-57,/,\\,.,-,_,+,,,#,$,%,{,},[,],@-@,!,~,=',
5011        doc = [[for Windows:
5012      "@,48-57,/,\,.,-,_,+,,,#,$,%,{,},[,],@-@,!,~,="
5013     otherwise: "@,48-57,/,.,-,_,+,,,#,$,%,~,="]],
5014      },
5015      deny_duplicates = true,
5016      desc = [=[
5017        The characters specified by this option are included in file names and
5018        path names.  Filenames are used for commands like "gf", "[i" and in
5019        the tags file.  It is also used for "\f" in a |pattern|.
5020        Multi-byte characters 256 and above are always included, only the
5021        characters up to 255 are specified with this option.
5022        For UTF-8 the characters 0xa0 to 0xff are included as well.
5023        Think twice before adding white space to this option.  Although a
5024        space may appear inside a file name, the effect will be that Vim
5025        doesn't know where a file name starts or ends when doing completion.
5026        It most likely works better without a space in 'isfname'.
5027
5028        Note that on systems using a backslash as path separator, Vim tries to
5029        do its best to make it work as you would expect.  That is a bit
5030        tricky, since Vi originally used the backslash to escape special
5031        characters.  Vim will not remove a backslash in front of a normal file
5032        name character on these systems, but it will on Unix and alikes.  The
5033        '&' and '^' are not included by default, because these are special for
5034        cmd.exe.
5035
5036        The format of this option is a list of parts, separated with commas.
5037        Each part can be a single character number or a range.  A range is two
5038        character numbers with '-' in between.  A character number can be a
5039        decimal number between 0 and 255 or the ASCII character itself (does
5040        not work for digits).  Example:
5041        	"_,-,128-140,#-43"	(include '_' and '-' and the range
5042        				128 to 140 and '#' to 43)
5043        If a part starts with '^', the following character number or range
5044        will be excluded from the option.  The option is interpreted from left
5045        to right.  Put the excluded character after the range where it is
5046        included.  To include '^' itself use it as the last character of the
5047        option or the end of a range.  Example:
5048        	"^a-z,#,^"	(exclude 'a' to 'z', include '#' and '^')
5049        If the character is '@', all characters where isalpha() returns TRUE
5050        are included.  Normally these are the characters a to z and A to Z,
5051        plus accented characters.  To include '@' itself use "@-@".  Examples:
5052        	"@,^a-z"	All alphabetic characters, excluding lower
5053        			case ASCII letters.
5054        	"a-z,A-Z,@-@"	All letters plus the '@' character.
5055        A comma can be included by using it where a character number is
5056        expected.  Example:
5057        	"48-57,,,_"	Digits, comma and underscore.
5058        A comma can be excluded by prepending a '^'.  Example:
5059        	" -~,^,,9"	All characters from space to '~', excluding
5060        			comma, plus <Tab>.
5061        See |option-backslash| about including spaces and backslashes.
5062      ]=],
5063      full_name = 'isfname',
5064      list = 'comma',
5065      scope = { 'global' },
5066      short_desc = N_('characters included in file names and pathnames'),
5067      type = 'string',
5068      varname = 'p_isf',
5069    },
5070    {
5071      abbreviation = 'isi',
5072      cb = 'did_set_isopt',
5073      validation_cb = 'validate_isopt',
5074      defaults = {
5075        condition = 'MSWIN',
5076        if_false = '@,48-57,_,192-255',
5077        if_true = '@,48-57,_,128-167,224-235',
5078        doc = [[for Windows:
5079                    "@,48-57,_,128-167,224-235"
5080         otherwise: "@,48-57,_,192-255"]],
5081      },
5082      deny_duplicates = true,
5083      desc = [=[
5084        The characters given by this option are included in identifiers.
5085        Identifiers are used in recognizing environment variables and after a
5086        match of the 'define' option.  It is also used for "\i" in a
5087        |pattern|.  See 'isfname' for a description of the format of this
5088        option.  For '@' only characters up to 255 are used.
5089        Careful: If you change this option, it might break expanding
5090        environment variables.  E.g., when '/' is included and Vim tries to
5091        expand "$HOME/.local/state/nvim/shada/main.shada".  Maybe you should
5092        change 'iskeyword' instead.
5093      ]=],
5094      full_name = 'isident',
5095      list = 'comma',
5096      scope = { 'global' },
5097      short_desc = N_('characters included in identifiers'),
5098      type = 'string',
5099      varname = 'p_isi',
5100    },
5101    {
5102      abbreviation = 'isk',
5103      cb = 'did_set_iskeyword',
5104      validation_cb = 'validate_isopt',
5105      defaults = '@,48-57,_,192-255',
5106      deny_duplicates = true,
5107      desc = [=[
5108        Keywords are used in searching and recognizing with many commands:
5109        "w", "*", "[i", etc.  It is also used for "\k" in a |pattern|.  See
5110        'isfname' for a description of the format of this option.  For '@'
5111        characters above 255 check the "word" character class (any character
5112        that is categorized as a letter, number or emoji according to the
5113        Unicode general category).
5114
5115        Note that there is a difference between the "\k" character class and
5116        the |word| motion.  The former matches any word character, while the
5117        latter stops at a change of the character class.
5118
5119        For C programs you could use "a-z,A-Z,48-57,_,.,-,>".
5120        For a help file it is set to all non-blank printable characters except
5121        "*", '"' and '|' (so that CTRL-] on a command finds the help for that
5122        command).
5123        When the 'lisp' option is on the '-' character is always included.
5124        This option also influences syntax highlighting, unless the syntax
5125        uses |:syn-iskeyword|.
5126      ]=],
5127      full_name = 'iskeyword',
5128      list = 'comma',
5129      scope = { 'buf' },
5130      short_desc = N_('characters included in keywords'),
5131      type = 'string',
5132      varname = 'p_isk',
5133    },
5134    {
5135      abbreviation = 'isp',
5136      defaults = '@,161-255',
5137      deny_duplicates = true,
5138      full_name = 'isprint',
5139      list = 'comma',
5140      scope = { 'global' },
5141      short_desc = N_('printable characters'),
5142      type = 'string',
5143      immutable = true,
5144    },
5145    {
5146      abbreviation = 'js',
5147      defaults = false,
5148      desc = [=[
5149        Insert two spaces after a '.', '?' and '!' with a join command.
5150        Otherwise only one space is inserted.
5151      ]=],
5152      full_name = 'joinspaces',
5153      scope = { 'global' },
5154      short_desc = N_('two spaces after a period with a join command'),
5155      type = 'boolean',
5156      varname = 'p_js',
5157    },
5158    {
5159      abbreviation = 'jop',
5160      validation_cb = 'validate_str_generic',
5161      defaults = 'clean',
5162      schema = {
5163        flags = { 'stack', 'view', 'clean' },
5164      },
5165      deny_duplicates = true,
5166      desc = [=[
5167        List of words that change the behavior of the |jumplist|.
5168          stack         Make the jumplist behave like the tagstack.
5169        		Relative location of entries in the jumplist is
5170        		preserved at the cost of discarding subsequent entries
5171        		when navigating backwards in the jumplist and then
5172        		jumping to a location.  |jumplist-stack|
5173
5174          view          When moving through the jumplist, |changelist|,
5175        		|alternate-file|, using |mark-motions| or when popping
5176        		the |tagstack| try to restore the |mark-view| in which
5177        		the action occurred.
5178
5179          clean         Remove unloaded buffers from the jumplist.
5180      ]=],
5181      full_name = 'jumpoptions',
5182      list = 'onecomma',
5183      scope = { 'global' },
5184      short_desc = N_('Controls the behavior of the jumplist'),
5185      type = 'string',
5186      varname = 'p_jop',
5187      flags_varname = 'jop_flags',
5188    },
5189    {
5190      abbreviation = 'kmp',
5191      cb = 'did_set_keymap',
5192      validation_cb = 'validate_filetype',
5193      defaults = '',
5194      desc = [=[
5195        Name of a keyboard mapping.  See |mbyte-keymap|.
5196        Setting this option to a valid keymap name has the side effect of
5197        setting 'iminsert' to one, so that the keymap becomes effective.
5198        'imsearch' is also set to one, unless it was -1
5199        Only alphanumeric characters, '.', '-' and '_' can be used.
5200      ]=],
5201      full_name = 'keymap',
5202      normal_fname_chars = true,
5203      pri_mkrc = true,
5204      redraw = { 'statuslines', 'current_buffer' },
5205      scope = { 'buf' },
5206      short_desc = N_('name of a keyboard mapping'),
5207      tags = { 'E544' },
5208      type = 'string',
5209      varname = 'p_keymap',
5210    },
5211    {
5212      abbreviation = 'km',
5213      cb = 'did_set_keymodel',
5214      validation_cb = 'validate_str_generic',
5215      defaults = '',
5216      schema = {
5217        set = { 'startsel', 'stopsel' },
5218      },
5219      deny_duplicates = true,
5220      desc = [=[
5221        List of comma-separated words, which enable special things that keys
5222        can do.  These values can be used:
5223           startsel	Using a shifted special key starts selection (either
5224        		Select mode or Visual mode, depending on "key" being
5225        		present in 'selectmode').
5226           stopsel	Using a not-shifted special key stops selection.
5227        Special keys in this context are the cursor keys, <End>, <Home>,
5228        <PageUp> and <PageDown>.
5229      ]=],
5230      full_name = 'keymodel',
5231      list = 'onecomma',
5232      scope = { 'global' },
5233      short_desc = N_('enable starting/stopping selection with keys'),
5234      type = 'string',
5235      varname = 'p_km',
5236    },
5237    {
5238      abbreviation = 'kp',
5239      defaults = {
5240        condition = 'MSWIN',
5241        if_true = ':help!',
5242        if_false = ':Man',
5243        doc = '":Man", Windows: ":help"',
5244      },
5245      desc = [=[
5246        Program to use for the |K| command.  Environment variables are
5247        expanded |:set_env|.
5248
5249        Special cases:
5250        - ":help" opens the |word| at cursor using |:help|.  (Note that
5251          previously setting the global option to the empty value did this,
5252          which is now deprecated.)
5253        - ":help!" performs |:help!| (DWIM) on the |WORD| at cursor.
5254        - If the value starts with ":", it is invoked as an Ex command
5255          and [count] is passed as the first argument, if present.
5256        - If "man" or "man -s", [count] is the manpage section number.
5257
5258        See |option-backslash| about including spaces and backslashes.
5259
5260        Example: >vim
5261        	set keywordprg=:help!
5262        	set keywordprg=man\ -s
5263        	set keywordprg=:Man
5264        <
5265      ]=],
5266      expand = true,
5267      full_name = 'keywordprg',
5268      scope = { 'global', 'buf' },
5269      secure = true,
5270      short_desc = N_('program to use for the "K" command'),
5271      type = 'string',
5272      varname = 'p_kp',
5273    },
5274    {
5275      abbreviation = 'lmap',
5276      cb = 'did_set_langmap',
5277      defaults = '',
5278      deny_duplicates = true,
5279      desc = [=[
5280        This option allows switching your keyboard into a special language
5281        mode.  When you are typing text in Insert mode the characters are
5282        inserted directly.  When in Normal mode the 'langmap' option takes
5283        care of translating these special characters to the original meaning
5284        of the key.  This means you don't have to change the keyboard mode to
5285        be able to execute Normal mode commands.
5286        This is the opposite of the 'keymap' option, where characters are
5287        mapped in Insert mode.
5288        Also consider setting 'langremap' to off, to prevent 'langmap' from
5289        applying to characters resulting from a mapping.
5290
5291        Example (for Greek, in UTF-8):				*greek*  >vim
5292            set langmap=ΑA,ΒB,ΨC,ΔD,ΕE,ΦF,ΓG,ΗH,ΙI,ΞJ,ΚK,ΛL,ΜM,ΝN,ΟO,ΠP,QQ,ΡR,ΣS,ΤT,ΘU,ΩV,WW,ΧX,ΥY,ΖZ,αa,βb,ψc,δd,εe,φf,γg,ηh,ιi,ξj,κk,λl,μm,νn,οo,πp,qq,ρr,σs,τt,θu,ωv,ςw,χx,υy,ζz
5293        <	Example (exchanges meaning of z and y for commands): >vim
5294            set langmap=zy,yz,ZY,YZ
5295        <
5296        The 'langmap' option is a list of parts, separated with commas.  Each
5297        part can be in one of two forms:
5298        1.  A list of pairs.  Each pair is a "from" character immediately
5299            followed by the "to" character.  Examples: "aA", "aAbBcC".
5300        2.  A list of "from" characters, a semicolon and a list of "to"
5301            characters.  Example: "abc;ABC"
5302        Example: "aA,fgh;FGH,cCdDeE"
5303        Special characters need to be preceded with a backslash.  These are
5304        ";", ',', '"', '|' and backslash itself.
5305
5306        This will allow you to activate vim actions without having to switch
5307        back and forth between the languages.  Your language characters will
5308        be understood as normal vim English characters (according to the
5309        langmap mappings) in the following cases:
5310         o Normal/Visual mode (commands, buffer/register names, user mappings)
5311         o Insert/Replace Mode: Register names after CTRL-R
5312         o Insert/Replace Mode: Mappings
5313        Characters entered in Command-line mode will NOT be affected by
5314        this option.   Note that this option can be changed at any time
5315        allowing to switch between mappings for different languages/encodings.
5316        Use a mapping to avoid having to type it each time!
5317      ]=],
5318      full_name = 'langmap',
5319      list = 'onecomma',
5320      scope = { 'global' },
5321      secure = true,
5322      short_desc = N_('alphabetic characters for other language mode'),
5323      tags = { 'E357', 'E358' },
5324      type = 'string',
5325      varname = 'p_langmap',
5326    },
5327    {
5328      abbreviation = 'lm',
5329      defaults = '',
5330      desc = [=[
5331        Language to use for menu translation.  Tells which file is loaded
5332        from the "lang" directory in 'runtimepath': >vim
5333        	"lang/menu_" .. &langmenu .. ".vim"
5334        <	(without the spaces).  For example, to always use the Dutch menus, no
5335        matter what $LANG is set to: >vim
5336        	set langmenu=nl_NL.ISO_8859-1
5337        <	When 'langmenu' is empty, |v:lang| is used.
5338        Only normal file name characters can be used, `/\*?[|<>` are illegal.
5339        If your $LANG is set to a non-English language but you do want to use
5340        the English menus: >vim
5341        	set langmenu=none
5342        <	This option must be set before loading menus, switching on filetype
5343        detection or syntax highlighting.  Once the menus are defined setting
5344        this option has no effect.  But you could do this: >vim
5345        	source $VIMRUNTIME/delmenu.vim
5346        	set langmenu=de_DE.ISO_8859-1
5347        	source $VIMRUNTIME/menu.vim
5348        <	Warning: This deletes all menus that you defined yourself!
5349      ]=],
5350      full_name = 'langmenu',
5351      normal_fname_chars = true,
5352      scope = { 'global' },
5353      short_desc = N_('language to be used for the menus'),
5354      type = 'string',
5355      varname = 'p_lm',
5356    },
5357    {
5358      abbreviation = 'lnr',
5359      cb = 'did_set_langnoremap',
5360      defaults = true,
5361      full_name = 'langnoremap',
5362      scope = { 'global' },
5363      short_desc = N_("do not apply 'langmap' to mapped characters"),
5364      type = 'boolean',
5365      varname = 'p_lnr',
5366    },
5367    {
5368      abbreviation = 'lrm',
5369      cb = 'did_set_langremap',
5370      defaults = false,
5371      desc = [=[
5372        When off, setting 'langmap' does not apply to characters resulting
5373        from a mapping.  If setting 'langmap' disables some of your mappings,
5374        make sure this option is off.
5375      ]=],
5376      full_name = 'langremap',
5377      scope = { 'global' },
5378      short_desc = N_('Deprecated'),
5379      type = 'boolean',
5380      varname = 'p_lrm',
5381    },
5382    {
5383      abbreviation = 'ls',
5384      cb = 'did_set_laststatus',
5385      defaults = 2,
5386      desc = [=[
5387        The value of this option influences when the last window will have a
5388        status line:
5389        	0: never
5390        	1: only if there are at least two windows
5391        	2: always
5392        	3: always and ONLY the last window
5393
5394        Here "last window" means the last window in a column, i.e. the bottom-
5395        most one, just above the command line.
5396
5397        The screen looks nicer with a status line if you have several
5398        windows, but it takes another screen line. |status-line|
5399      ]=],
5400      full_name = 'laststatus',
5401      redraw = { 'all_windows' },
5402      scope = { 'global' },
5403      short_desc = N_('tells when last window has status lines'),
5404      type = 'number',
5405      varname = 'p_ls',
5406    },
5407    {
5408      abbreviation = 'lz',
5409      defaults = false,
5410      desc = [=[
5411        When this option is set, the screen will not be redrawn while
5412        executing macros, registers and other commands that have not been
5413        typed.  Also, updating the window title is postponed.  To force an
5414        update use |:redraw|.
5415        This may occasionally cause display errors.  It is only meant to be
5416        set temporarily when performing an operation where redrawing may cause
5417        flickering or cause a slowdown.
5418      ]=],
5419      full_name = 'lazyredraw',
5420      scope = { 'global' },
5421      short_desc = N_("don't redraw while executing macros"),
5422      type = 'boolean',
5423      varname = 'p_lz',
5424    },
5425    {
5426      abbreviation = 'lhi',
5427      cb = 'did_set_xhistory',
5428      defaults = 10,
5429      desc = [=[
5430        Like 'chistory', but for the location list stack associated with a
5431        window.  If the option is changed in either the location list window
5432        itself or the window that is associated with the location list stack,
5433        the new value will also be applied to the other one.  This means this
5434        value will always be the same for a given location list window and its
5435        corresponding window.  See |quickfix-stack| for additional info.
5436      ]=],
5437      full_name = 'lhistory',
5438      scope = { 'win' },
5439      short_desc = N_('number of location lists stored in history'),
5440      type = 'number',
5441    },
5442    {
5443      abbreviation = 'lbr',
5444      defaults = false,
5445      desc = [=[
5446        If on, Vim will wrap long lines at a character in 'breakat' rather
5447        than at the last character that fits on the screen.  Unlike
5448        'wrapmargin' and 'textwidth', this does not insert <EOL>s in the file,
5449        it only affects the way the file is displayed, not its contents.
5450        If 'breakindent' is set, line is visually indented.  Then, the value
5451        of 'showbreak' is used to put in front of wrapped lines.  This option
5452        is not used when the 'wrap' option is off.
5453        Note that <Tab> characters after an <EOL> are mostly not displayed
5454        with the right amount of white space.
5455      ]=],
5456      full_name = 'linebreak',
5457      redraw = { 'current_window' },
5458      scope = { 'win' },
5459      short_desc = N_('wrap long lines at a blank'),
5460      type = 'boolean',
5461    },
5462    {
5463      cb = 'did_set_lines_or_columns',
5464      defaults = {
5465        if_true = macros('DFLT_ROWS', 'number'),
5466        doc = '24 or terminal height',
5467      },
5468      desc = [=[
5469        Number of lines of the Vim window.
5470        Normally you don't need to set this.  It is done automatically by the
5471        terminal initialization code.
5472        When Vim is running in the GUI or in a resizable window, setting this
5473        option will cause the window size to be changed.  When you only want
5474        to use the size for the GUI, put the command in your |gvimrc| file.
5475        Vim limits the number of lines to what fits on the screen.  You can
5476        use this command to get the tallest window possible: >vim
5477        	set lines=999
5478        <	Minimum value is 2, maximum value is 1000.
5479      ]=],
5480      full_name = 'lines',
5481      no_mkrc = true,
5482      scope = { 'global' },
5483      short_desc = N_('of lines in the display'),
5484      tags = { 'E593' },
5485      type = 'number',
5486      varname = 'p_lines',
5487    },
5488    {
5489      abbreviation = 'lsp',
5490      defaults = 0,
5491      desc = [=[
5492        		only in the GUI
5493        Number of pixel lines inserted between characters.  Useful if the font
5494        uses the full character cell height, making lines touch each other.
5495        When non-zero there is room for underlining.
5496        With some fonts there can be too much room between lines (to have
5497        space for ascents and descents).  Then it makes sense to set
5498        'linespace' to a negative value.  This may cause display problems
5499        though!
5500      ]=],
5501      full_name = 'linespace',
5502      redraw = { 'ui_option' },
5503      scope = { 'global' },
5504      short_desc = N_('number of pixel lines to use between characters'),
5505      type = 'number',
5506      varname = 'p_linespace',
5507    },
5508    {
5509      cb = 'did_set_lisp',
5510      defaults = false,
5511      desc = [=[
5512        Lisp mode: When <Enter> is typed in insert mode set the indent for
5513        the next line to Lisp standards (well, sort of).  Also happens with
5514        "cc" or "S".  'autoindent' must also be on for this to work.
5515        Also see 'lispwords'.
5516        The '-' character is included in keyword characters.  Redefines the
5517        "=" operator to use this same indentation algorithm rather than
5518        calling an external program if 'equalprg' is empty.
5519      ]=],
5520      full_name = 'lisp',
5521      scope = { 'buf' },
5522      short_desc = N_('indenting for Lisp'),
5523      type = 'boolean',
5524      varname = 'p_lisp',
5525    },
5526    {
5527      abbreviation = 'lop',
5528      validation_cb = 'validate_lispoptions',
5529      defaults = '',
5530      schema = {
5531        set = { 'expr:0', 'expr:1' },
5532      },
5533      deny_duplicates = true,
5534      desc = [=[
5535        Comma-separated list of items that influence the Lisp indenting when
5536        enabled with the 'lisp' option.  Currently only one item is supported:
5537        	expr:1	use 'indentexpr' for Lisp indenting when it is set
5538        	expr:0	do not use 'indentexpr' for Lisp indenting (default)
5539        Note that when using 'indentexpr' the `=` operator indents all the
5540        lines, otherwise the first line is not indented (Vi-compatible).
5541      ]=],
5542      full_name = 'lispoptions',
5543      list = 'onecomma',
5544      scope = { 'buf' },
5545      short_desc = N_('options for lisp indenting'),
5546      type = 'string',
5547      varname = 'p_lop',
5548    },
5549    {
5550      abbreviation = 'lw',
5551      defaults = {
5552        if_true = macros('LISPWORD_VALUE', 'string'),
5553        doc = 'is very long',
5554      },
5555      deny_duplicates = true,
5556      desc = [=[
5557        Comma-separated list of words that influence the Lisp indenting when
5558        enabled with the 'lisp' option.
5559      ]=],
5560      full_name = 'lispwords',
5561      list = 'onecomma',
5562      scope = { 'global', 'buf' },
5563      short_desc = N_('words that change how lisp indenting works'),
5564      type = 'string',
5565      varname = 'p_lispwords',
5566    },
5567    {
5568      defaults = false,
5569      desc = [=[
5570        List mode: By default, show tabs as ">", trailing spaces as "-", and
5571        non-breakable space characters as "+". Useful to see the difference
5572        between tabs and spaces and for trailing blanks. Further changed by
5573        the 'listchars' option.
5574
5575        When 'listchars' does not contain "tab" field, tabs are shown as "^I"
5576        or "<09>", like how unprintable characters are displayed.
5577
5578        The cursor is displayed at the start of the space a Tab character
5579        occupies, not at the end as usual in Normal mode.  To get this cursor
5580        position while displaying Tabs with spaces, use: >vim
5581        	let &list = v:true | let &lcs = 'tab:  '
5582        <
5583        Note that list mode will also affect formatting (set with 'textwidth'
5584        or 'wrapmargin') when 'cpoptions' includes 'L'.  See 'listchars' for
5585        changing the way tabs are displayed.
5586      ]=],
5587      full_name = 'list',
5588      redraw = { 'current_window' },
5589      scope = { 'win' },
5590      short_desc = N_('<Tab> and <EOL>'),
5591      type = 'boolean',
5592    },
5593    {
5594      abbreviation = 'lcs',
5595      cb = 'did_set_chars_option',
5596      validation_cb = 'validate_chars_option',
5597      defaults = 'tab:> ,trail:-,nbsp:+',
5598      deny_duplicates = true,
5599      -- 'listchars' schema: generates `lcs_tab` (the `lcs_chars` dispatch table).
5600      -- "tab"/"leadtab" fill a multi-char field; "multispace"/"leadmultispace" have no single
5601      -- storage (field=false) and are handled specially in set_chars_option().
5602      schema = {
5603        chars = {
5604          { 'eol', 'char' },
5605          { 'extends', 'char', { field = 'ext' } },
5606          { 'nbsp', 'char' },
5607          { 'precedes', 'char', { field = 'prec' } },
5608          { 'space', 'char' },
5609          { 'tab', 'chars', { field = 'tab2' } },
5610          { 'leadtab', 'chars', { field = 'leadtab2' } },
5611          { 'lead', 'char' },
5612          { 'trail', 'char' },
5613          { 'conceal', 'char' },
5614          { 'multispace', 'chars', { field = false } },
5615          { 'leadmultispace', 'chars', { field = false } },
5616        },
5617      },
5618      desc = [=[
5619        Strings to use in 'list' mode and for the |:list| command.  It is a
5620        comma-separated list of string settings. *E1511*
5621
5622        						*lcs-eol*
5623          eol:c		Character to show at the end of each line.  When
5624        		omitted, there is no extra character at the end of the
5625        		line.
5626        						*lcs-tab*
5627          tab:xy[z]	Two or three characters to be used to show a tab.
5628        		The third character is optional.
5629
5630          tab:xy	The 'x' is always used, then 'y' as many times as will
5631        		fit.  Thus "tab:>-" displays: >
5632        			>
5633        			>-
5634        			>--
5635        			etc.
5636        <
5637          tab:xyz	The 'z' is always used, then 'x' is prepended, and
5638        		then 'y' is used as many times as will fit.  Thus
5639        		"tab:<->" displays: >
5640        			>
5641        			<>
5642        			<->
5643        			<-->
5644        			etc.
5645        <
5646        		When "tab:" is omitted, a tab is shown as ^I.
5647        						*lcs-space*
5648          space:c	Character to show for a space.  When omitted, spaces
5649        		are left blank.
5650        						*lcs-multispace*
5651          multispace:c...
5652        		One or more characters to use cyclically to show for
5653        		multiple consecutive spaces.  Overrides the "space"
5654        		setting, except for single spaces.  When omitted, the
5655        		"space" setting is used.  For example,
5656        		`:set listchars=multispace:---+` shows ten consecutive
5657        		spaces as: >
5658        			---+---+--
5659        <
5660        						*lcs-lead*
5661          lead:c	Character to show for leading spaces.  When omitted,
5662        		leading spaces are blank.  Overrides the "space" and
5663        		"multispace" settings for leading spaces.  You can
5664        		combine it with "tab:", for example: >vim
5665        			set listchars+=tab:>-,lead:.
5666        <
5667                                        *lcs-leadmultispace* *indent-guides*
5668          leadmultispace:c...
5669        		Like the |lcs-multispace| value, but for leading
5670        		spaces only.  Also overrides |lcs-lead| for leading
5671        		multiple spaces.
5672        		`:set listchars=leadmultispace:---+` shows ten
5673        		consecutive leading spaces as: >
5674        			---+---+--XXX
5675        <
5676        		Where "XXX" denotes the first non-blank characters in
5677        		the line.
5678
5679                        Combined with |lcs-leadtab|, this can be used to show
5680                        "indentation guides" (vertical lines).
5681        		For example, with 'shiftwidth' 2: >vim
5682        			set list listchars=leadtab:\ \ │,tab:\ \ │,leadmultispace:\ \ │
5683        <		For richer rendering (per-level colors, treesitter-aware
5684        		scopes, etc.) use a third-party plugin.
5685        						*lcs-leadtab*
5686          leadtab:xy[z]
5687        		Like |lcs-tab|, but only for leading tabs.  When
5688        		omitted, the "tab" setting is used for leading tabs.
5689        		|lcs-tab| must also be set for this to work. *E1572*
5690        		You can combine it with "tab:", for example: >vim
5691        			let &listchars = 'tab:>-,leadtab:. '
5692        <			This shows leading tabs as periods(.) and other tabs
5693        		as ">--".
5694        						*lcs-trail*
5695          trail:c	Character to show for trailing spaces.  When omitted,
5696        		trailing spaces are blank.  Overrides the "space" and
5697        		"multispace" settings for trailing spaces.
5698        						*lcs-extends*
5699          extends:c	Character to show in the last column, when 'wrap' is
5700        		off and the line continues beyond the right of the
5701        		screen.
5702        						*lcs-precedes*
5703          precedes:c	Character to show in the first visible column of the
5704        		physical line, when there is text preceding the
5705        		character visible in the first column.
5706        						*lcs-conceal*
5707          conceal:c	Character to show in place of concealed text, when
5708        		'conceallevel' is set to 1.  A space when omitted.
5709        						*lcs-nbsp*
5710          nbsp:c	Character to show for a non-breakable space character
5711        		(0xA0 (160 decimal) and U+202F).  Left blank when
5712        		omitted.
5713
5714        The characters ':' and ',' should not be used.  UTF-8 characters can
5715        be used.  All characters must be single width. *E1512*
5716
5717        Each character can be specified as hex: >vim
5718        	set listchars=eol:\\x24
5719        	set listchars=eol:\\u21b5
5720        	set listchars=eol:\\U000021b5
5721        <	Note that a double backslash is used.  The number of hex characters
5722        must be exactly 2 for \\x, 4 for \\u and 8 for \\U.
5723
5724        Examples: >vim
5725            set lcs=tab:>-,trail:-
5726            set lcs=tab:>-,eol:<,nbsp:%
5727            set lcs=extends:>,precedes:<
5728        <	|hl-NonText| highlighting will be used for "eol", "extends" and
5729        "precedes". |hl-Whitespace| for "nbsp", "space", "tab", "multispace",
5730        "lead" and "trail".
5731      ]=],
5732      expand_cb = 'expand_set_chars_option',
5733      full_name = 'listchars',
5734      list = 'onecommacolon',
5735      redraw = { 'current_window' },
5736      scope = { 'global', 'win' },
5737      short_desc = N_('characters for displaying in list mode'),
5738      type = 'string',
5739      varname = 'p_lcs',
5740    },
5741    {
5742      abbreviation = 'lpl',
5743      defaults = true,
5744      desc = [=[
5745        When on the plugin scripts are loaded when starting up |load-plugins|.
5746        This option can be reset in your |vimrc| file to disable the loading
5747        of plugins.
5748        Note that using the "-u NONE" and "--noplugin" command line arguments
5749        reset this option. |-u| |--noplugin|
5750      ]=],
5751      full_name = 'loadplugins',
5752      scope = { 'global' },
5753      short_desc = N_('load plugin scripts when starting up'),
5754      type = 'boolean',
5755      varname = 'p_lpl',
5756    },
5757    {
5758      defaults = true,
5759      full_name = 'magic',
5760      scope = { 'global' },
5761      short_desc = N_('Deprecated'),
5762      type = 'boolean',
5763      varname = 'p_magic',
5764    },
5765    {
5766      abbreviation = 'mef',
5767      defaults = '',
5768      desc = [=[
5769        Name of the errorfile for the |:make| command (see |:make_makeprg|)
5770        and the |:grep| command.
5771        When it is empty, an internally generated temp file will be used.
5772        When "##" is included, it is replaced by a number to make the name
5773        unique.  This makes sure that the ":make" command doesn't overwrite an
5774        existing file.
5775        NOT used for the ":cf" command.  See 'errorfile' for that.
5776        Environment variables are expanded |:set_env|.
5777        See |option-backslash| about including spaces and backslashes.
5778      ]=],
5779      expand = true,
5780      full_name = 'makeef',
5781      scope = { 'global' },
5782      secure = true,
5783      short_desc = N_('name of the errorfile for ":make"'),
5784      type = 'string',
5785      varname = 'p_mef',
5786    },
5787    {
5788      abbreviation = 'menc',
5789      cb = 'did_set_encoding',
5790      defaults = '',
5791      desc = [=[
5792        Encoding used for reading the output of external commands.  When
5793        empty, encoding is not converted.
5794        This is used for `:make`, `:lmake`, `:grep`, `:lgrep`, `:grepadd`,
5795        `:lgrepadd`, `:cfile`, `:cgetfile`, `:caddfile`, `:lfile`, `:lgetfile`,
5796        and `:laddfile`.
5797
5798        This would be mostly useful when you use MS-Windows.  If iconv is
5799        enabled, setting 'makeencoding' to "char" has the same effect as
5800        setting to the system locale encoding.  Example: >vim
5801        	set makeencoding=char	" system locale is used
5802        <
5803      ]=],
5804      expand_cb = 'expand_set_encoding',
5805      full_name = 'makeencoding',
5806      scope = { 'global', 'buf' },
5807      short_desc = N_('Converts the output of external commands'),
5808      type = 'string',
5809      varname = 'p_menc',
5810    },
5811    {
5812      abbreviation = 'mp',
5813      defaults = 'make',
5814      desc = [=[
5815        Program to use for the ":make" command.  See |:make_makeprg|.
5816        This option may contain '%' and '#' characters (see  |:_%| and |:_#|),
5817        which are expanded to the current and alternate file name.  Use |::S|
5818        to escape file names in case they contain special characters.
5819        Environment variables are expanded |:set_env|.  See |option-backslash|
5820        about including spaces and backslashes.
5821        Note that a '|' must be escaped twice: once for ":set" and once for
5822        the interpretation of a command.  When you use a filter called
5823        "myfilter" do it like this: >vim
5824            set makeprg=gmake\ \\\|\ myfilter
5825        <	The placeholder "$*" can be given (even multiple times) to specify
5826        where the arguments will be included, for example: >vim
5827            set makeprg=latex\ \\\\nonstopmode\ \\\\input\\{$*}
5828        <
5829      ]=],
5830      expand = true,
5831      full_name = 'makeprg',
5832      scope = { 'global', 'buf' },
5833      secure = true,
5834      short_desc = N_('program to use for the ":make" command'),
5835      type = 'string',
5836      varname = 'p_mp',
5837    },
5838    {
5839      abbreviation = 'mps',
5840      validation_cb = 'validate_matchpairs',
5841      defaults = '(:),{:},[:]',
5842      deny_duplicates = true,
5843      desc = [=[
5844        Characters that form pairs.  The |%| command jumps from one to the
5845        other.
5846        Only character pairs are allowed that are different, thus you cannot
5847        jump between two double quotes.
5848        The characters must be separated by a colon.
5849        The pairs must be separated by a comma.  Example for including '<' and
5850        '>' (for HTML): >vim
5851        	set mps+=<:>
5852
5853        <	A more exotic example, to jump between the '=' and ';' in an
5854        assignment, useful for languages like C and Java: >vim
5855        	au FileType c,cpp,java set mps+==:;
5856
5857        <	For a more advanced way of using "%", see the matchit.vim plugin in
5858        the $VIMRUNTIME/plugin directory. |add-local-help|
5859      ]=],
5860      full_name = 'matchpairs',
5861      list = 'onecomma',
5862      scope = { 'buf' },
5863      short_desc = N_('pairs of characters that "%" can match'),
5864      type = 'string',
5865      varname = 'p_mps',
5866    },
5867    {
5868      abbreviation = 'mat',
5869      defaults = 5,
5870      desc = [=[
5871        Tenths of a second to show the matching paren, when 'showmatch' is
5872        set.  Note that this is not in milliseconds, like other options that
5873        set a time.  This is to be compatible with Nvi.
5874      ]=],
5875      full_name = 'matchtime',
5876      scope = { 'global' },
5877      short_desc = N_('tenths of a second to show matching paren'),
5878      type = 'number',
5879      varname = 'p_mat',
5880    },
5881    {
5882      abbreviation = 'mco',
5883      defaults = macros('MAX_MCO', 'number'),
5884      full_name = 'maxcombine',
5885      scope = { 'global' },
5886      short_desc = N_('maximum nr of combining characters displayed'),
5887      type = 'number',
5888      varname = 'p_mco',
5889    },
5890    {
5891      abbreviation = 'mfd',
5892      defaults = 100,
5893      desc = [=[
5894        Maximum depth of function calls for user functions.  This normally
5895        catches endless recursion.  When using a recursive function with
5896        more depth, set 'maxfuncdepth' to a bigger number.  But this will use
5897        more memory, there is the danger of failing when memory is exhausted.
5898        Increasing this limit above 200 also changes the maximum for Ex
5899        command recursion, see |E169|.
5900        See also |:function|.
5901        Also used for maximum depth of callback functions.
5902      ]=],
5903      full_name = 'maxfuncdepth',
5904      scope = { 'global' },
5905      short_desc = N_('maximum recursive depth for user functions'),
5906      type = 'number',
5907      varname = 'p_mfd',
5908    },
5909    {
5910      abbreviation = 'mmd',
5911      defaults = 1000,
5912      desc = [=[
5913        Maximum number of times a mapping is done without resulting in a
5914        character to be used.  This normally catches endless mappings, like
5915        ":map x y" with ":map y x".  It still does not catch ":map g wg",
5916        because the 'w' is used before the next mapping is done.  See also
5917        |key-mapping|.
5918      ]=],
5919      full_name = 'maxmapdepth',
5920      scope = { 'global' },
5921      short_desc = N_('maximum recursive depth for mapping'),
5922      tags = { 'E223' },
5923      type = 'number',
5924      varname = 'p_mmd',
5925    },
5926    {
5927      abbreviation = 'mmp',
5928      defaults = 1000,
5929      desc = [=[
5930        Maximum amount of memory (in Kbyte) to use for pattern matching.
5931        The maximum value is about 2000000.  Use this to work without a limit.
5932        						*E363*
5933        When Vim runs into the limit it gives an error message and mostly
5934        behaves like CTRL-C was typed.
5935        Running into the limit often means that the pattern is very
5936        inefficient or too complex.  This may already happen with the pattern
5937        `\(.\)*` on a very long line.  `.*` works much better.
5938        Might also happen on redraw, when syntax rules try to match a complex
5939        text structure.
5940        Vim may run out of memory before hitting the 'maxmempattern' limit, in
5941        which case you get an "Out of memory" error instead.
5942      ]=],
5943      full_name = 'maxmempattern',
5944      scope = { 'global' },
5945      short_desc = N_('maximum memory (in Kbyte) used for pattern search'),
5946      type = 'number',
5947      varname = 'p_mmp',
5948    },
5949    {
5950      abbreviation = 'msc',
5951      defaults = 999,
5952      desc = [=[
5953        Maximum number of matches shown for the search count status |shm-S|
5954        When the number of matches exceeds this value, Vim shows ">" instead
5955        of the exact count to keep searching fast.
5956        Note: larger values may impact performance.
5957        The value must be between 1 and 9999.  See also the |searchcount()|
5958        function.
5959      ]=],
5960      full_name = 'maxsearchcount',
5961      scope = { 'global' },
5962      short_desc = N_('maximum number for the search count feature'),
5963      type = 'number',
5964      varname = 'p_msc',
5965    },
5966    {
5967      abbreviation = 'mis',
5968      defaults = 25,
5969      desc = [=[
5970        Maximum number of items to use in a menu.  Used for menus that are
5971        generated from a list of items, e.g., the Buffers menu.  Changing this
5972        option has no direct effect, the menu must be refreshed first.
5973      ]=],
5974      full_name = 'menuitems',
5975      scope = { 'global' },
5976      short_desc = N_('maximum number of items in a menu'),
5977      type = 'number',
5978      varname = 'p_mis',
5979    },
5980    {
5981      abbreviation = 'mopt',
5982      cb = 'did_set_messagesopt',
5983      defaults = 'hit-enter,history:500,progress:c',
5984      schema = {
5985        dict = {
5986          'hit-enter',
5987          { 'history', 'num' },
5988          { 'maxheight', 'num' },
5989          { 'pager', 'str' },
5990          { 'progress', 'enum', { values = { '', 'c' } } },
5991          { 'timeout', 'num' },
5992          { 'wait', 'num' },
5993        },
5994      },
5995      deny_duplicates = true,
5996      desc = [=[
5997        Option settings for outputting messages.  It can consist of the
5998        following items.  Items must be separated by a comma.
5999
6000        history:{n}	Determines how many entries are remembered in the
6001        		|:messages| history.  The maximum value is 10000.
6002        		Setting it to zero clears the message history.
6003        		This item must always be present.
6004
6005        hit-enter	Use a |hit-enter| prompt when the message is longer than
6006        		'cmdheight' size.
6007
6008        maxheight:{n}	|ui2| only.  Maximum height of the expanded cmdline
6009        		for message display, as a percentage of 'lines'.
6010        		A message longer than this is "collapsed", with
6011        		a `[+x]` "spill" indicator.  (default: 50)
6012
6013        pager:{key}	|ui2| only.  Key that enters the message pager after an
6014        		interactive |:| command showed a collapsed message.  Use
6015        		|key-notation|, e.g. `<CR>`.  A literal comma must be
6016        		given as "<Char-44>".  Empty: no such key.
6017
6018        progress:{s}	Determines where to show progress messages.
6019        		Valid values are:
6020        		  - empty: Progress messages not shown in cmdline.
6021        		  - "c": Progress messages are shown in cmdline.
6022
6023        timeout:{n}	|ui2| only.  Time in milliseconds that a message is
6024        		visible in the message window.
6025
6026        wait:{n}	Deprecated with |ui2|.
6027        		Instead of a |hit-enter| prompt, simply wait for {n}
6028        		milliseconds so the user has a chance to read the
6029        		message.  Maximum {n} is 10000.  Use 0 to disable the
6030        		wait (user won't see any "hit-enter" messages).
6031        		Ignored when "hit-enter" is present, but required when
6032        		"hit-enter" is not present.
6033      ]=],
6034      full_name = 'messagesopt',
6035      list = 'onecommacolon',
6036      scope = { 'global' },
6037      short_desc = N_('options for outputting messages'),
6038      type = 'string',
6039      varname = 'p_mopt',
6040    },
6041    {
6042      abbreviation = 'msm',
6043      validation_cb = 'validate_mkspellmem',
6044      defaults = '460000,2000,500',
6045      desc = [=[
6046        Parameters for |:mkspell|.  This tunes when to start compressing the
6047        word tree.  Compression can be slow when there are many words, but
6048        it's needed to avoid running out of memory.  The amount of memory used
6049        per word depends very much on how similar the words are, that's why
6050        this tuning is complicated.
6051
6052        There are three numbers, separated by commas: >
6053        	{start},{inc},{added}
6054        <
6055        For most languages the uncompressed word tree fits in memory.  {start}
6056        gives the amount of memory in Kbyte that can be used before any
6057        compression is done.  It should be a bit smaller than the amount of
6058        memory that is available to Vim.
6059
6060        When going over the {start} limit the {inc} number specifies the
6061        amount of memory in Kbyte that can be allocated before another
6062        compression is done.  A low number means compression is done after
6063        less words are added, which is slow.  A high number means more memory
6064        will be allocated.
6065
6066        After doing compression, {added} times 1024 words can be added before
6067        the {inc} limit is ignored and compression is done when any extra
6068        amount of memory is needed.  A low number means there is a smaller
6069        chance of hitting the {inc} limit, less memory is used but it's
6070        slower.
6071
6072        The languages for which these numbers are important are Italian and
6073        Hungarian.  The default works for when you have about 512 Mbyte.  If
6074        you have 1 Gbyte you could use: >vim
6075        	set mkspellmem=900000,3000,800
6076        <	If you have less than 512 Mbyte |:mkspell| may fail for some
6077        languages, no matter what you set 'mkspellmem' to.
6078        Environment variables are expanded |:set_env|.
6079      ]=],
6080      expand = true,
6081      full_name = 'mkspellmem',
6082      scope = { 'global' },
6083      secure = true,
6084      short_desc = N_('memory used before |:mkspell| compresses the tree'),
6085      type = 'string',
6086      varname = 'p_msm',
6087    },
6088    {
6089      abbreviation = 'ml',
6090      defaults = {
6091        if_true = true,
6092        doc = 'on (off for root)',
6093      },
6094      desc = [=[
6095        If 'modeline' is on 'modelines' gives the number of lines that is
6096        checked for set commands.  If 'modeline' is off or 'modelines' is zero
6097        no lines are checked.  See |modeline|.
6098      ]=],
6099      full_name = 'modeline',
6100      scope = { 'buf' },
6101      short_desc = N_('recognize modelines at start or end of file'),
6102      type = 'boolean',
6103      varname = 'p_ml',
6104    },
6105    {
6106      abbreviation = 'mle',
6107      defaults = false,
6108      desc = [=[
6109        When on allow some options that are an expression to be set in the
6110        modeline.  Check the option for whether it is affected by
6111        'modelineexpr'.  Also see |modeline|.
6112      ]=],
6113      full_name = 'modelineexpr',
6114      scope = { 'global' },
6115      secure = true,
6116      short_desc = N_('allow some options to be set in modeline'),
6117      type = 'boolean',
6118      varname = 'p_mle',
6119    },
6120    {
6121      abbreviation = 'mls',
6122      defaults = 5,
6123      desc = [=[
6124        If 'modeline' is on 'modelines' gives the number of lines that is
6125        checked for set commands.  If 'modeline' is off or 'modelines' is zero
6126        no lines are checked.  See |modeline|.
6127      ]=],
6128      full_name = 'modelines',
6129      scope = { 'global' },
6130      short_desc = N_('number of lines checked for modelines'),
6131      type = 'number',
6132      varname = 'p_mls',
6133    },
6134    {
6135      abbreviation = 'ma',
6136      cb = 'did_set_modifiable',
6137      defaults = true,
6138      desc = [=[
6139        When off the buffer contents cannot be changed.  The 'fileformat' and
6140        'fileencoding' options also can't be changed.
6141        Can be reset on startup with the |-M| command line argument.
6142      ]=],
6143      full_name = 'modifiable',
6144      noglob = true,
6145      scope = { 'buf' },
6146      short_desc = N_('changes to the text are not possible'),
6147      tags = { 'E21' },
6148      type = 'boolean',
6149      varname = 'p_ma',
6150    },
6151    {
6152      abbreviation = 'mod',
6153      cb = 'did_set_modified',
6154      defaults = false,
6155      desc = [=[
6156        When on, the buffer is considered to be modified.  This option is set
6157        when:
6158        1. A change was made to the text since it was last written.  Using the
6159           |undo| command to go back to the original text will reset the
6160           option.  But undoing changes that were made before writing the
6161           buffer will set the option again, since the text is different from
6162           when it was written.
6163        2. 'fileformat' or 'fileencoding' is different from its original
6164           value.  The original value is set when the buffer is read or
6165           written.  A ":set nomodified" command also resets the original
6166           values to the current values and the 'modified' option will be
6167           reset.
6168           Similarly for 'eol' and 'bomb'.
6169        This option is not set when a change is made to the buffer as the
6170        result of a BufNewFile, BufRead/BufReadPost, BufWritePost,
6171        FileAppendPost or VimLeave autocommand event.  See |gzip-example| for
6172        an explanation.
6173
6174        When 'buftype' is "prompt", 'modified' is not implicitly set when the
6175        buffer is changed, but a user or plugin may explicitly set it.
6176
6177        When 'buftype' is "nowrite" or "nofile", this option may be set, but
6178        will be ignored.
6179
6180        Note that the text may actually be the same, e.g. 'modified' is set
6181        when using "rA" on an "A".
6182      ]=],
6183      full_name = 'modified',
6184      no_mkrc = true,
6185      redraw = { 'statuslines' },
6186      scope = { 'buf' },
6187      short_desc = N_('buffer has been modified'),
6188      type = 'boolean',
6189      varname = 'p_mod',
6190    },
6191    {
6192      defaults = true,
6193      desc = [=[
6194        When on, listings pause when the whole screen is filled.  You will get
6195        the |more-prompt|.  When this option is off there are no pauses, the
6196        listing continues until finished.
6197      ]=],
6198      full_name = 'more',
6199      scope = { 'global' },
6200      short_desc = N_('listings when the whole screen is filled'),
6201      type = 'boolean',
6202      varname = 'p_more',
6203    },
6204    {
6205      validation_cb = 'validate_mouse',
6206      defaults = 'nvi',
6207      desc = [=[
6208        Enables mouse support. For example, to enable the mouse in Normal mode
6209        and Visual mode: >vim
6210        	set mouse=nv
6211        <
6212        To temporarily disable mouse support, hold the shift key while using
6213        the mouse.
6214
6215        Mouse support can be enabled for different modes:
6216        	n	Normal mode
6217        	v	Visual mode
6218        	i	Insert mode
6219        	c	Command-line mode
6220        	h	all previous modes when editing a help file
6221        	a	all previous modes
6222        	r	for |hit-enter| and |more-prompt| prompt
6223
6224        Left-click anywhere in a text buffer to place the cursor there.  This
6225        works with operators too, e.g. type |d| then left-click to delete text
6226        from the current cursor position to the position where you clicked.
6227
6228        Drag the |status-line| or vertical separator of a window to resize it.
6229
6230        If enabled for "v" (Visual mode) then double-click selects word-wise,
6231        triple-click makes it line-wise, and quadruple-click makes it
6232        rectangular block-wise.
6233
6234        For scrolling with a mouse wheel see |scroll-mouse-wheel|.
6235
6236        Note: When enabling the mouse in a terminal, copy/paste will use the
6237        "* register if possible. See also 'clipboard'.
6238
6239        Related options:
6240        'mousefocus'	window focus follows mouse pointer
6241        'mousemodel'	what mouse button does which action
6242        'mousehide'	hide mouse pointer while typing text
6243        'selectmode'	whether to start Select mode or Visual mode
6244      ]=],
6245      expand_cb = 'expand_set_mouse',
6246      -- Generates kMouse* flag constants. MOUSE_A/MOUSE_ALL stay hand-defined in option_vars.h.
6247      schema = {
6248        flagchars = {
6249          normal = 'n', -- use mouse in Normal mode
6250          visual = 'v', -- use mouse in Visual/Select mode
6251          insert = 'i', -- use mouse in Insert mode
6252          command = 'c', -- use mouse in Command-line mode
6253          help = 'h', -- use mouse in help buffers
6254          ['return'] = 'r', -- use mouse for hit-return message
6255          none = ' ', -- don't use Visual selection
6256          nonef = 'x', -- forced modeless selection
6257        },
6258      },
6259      full_name = 'mouse',
6260      list = 'flags',
6261      scope = { 'global' },
6262      short_desc = N_('the use of mouse clicks'),
6263      type = 'string',
6264      varname = 'p_mouse',
6265    },
6266    {
6267      abbreviation = 'mousef',
6268      defaults = false,
6269      desc = [=[
6270        The window that the mouse pointer is on is automatically activated.
6271        When changing the window layout or window focus in another way, the
6272        mouse pointer is moved to the window with keyboard focus.  Off is the
6273        default because it makes using the pull down menus a little goofy, as
6274        a pointer transit may activate a window unintentionally.
6275      ]=],
6276      full_name = 'mousefocus',
6277      redraw = { 'ui_option' },
6278      scope = { 'global' },
6279      short_desc = N_('keyboard focus follows the mouse'),
6280      type = 'boolean',
6281      varname = 'p_mousef',
6282    },
6283    {
6284      abbreviation = 'mh',
6285      defaults = true,
6286      desc = [=[
6287        		only in the GUI
6288        When on, the mouse pointer is hidden when characters are typed.
6289        The mouse pointer is restored when the mouse is moved.
6290      ]=],
6291      full_name = 'mousehide',
6292      redraw = { 'ui_option' },
6293      scope = { 'global' },
6294      short_desc = N_('hide mouse pointer while typing'),
6295      type = 'boolean',
6296      varname = 'p_mh',
6297    },
6298    {
6299      abbreviation = 'mousem',
6300      validation_cb = 'validate_str_generic',
6301      defaults = 'popup_setpos',
6302      schema = {
6303        enum = { 'extend', 'popup', 'popup_setpos' },
6304      },
6305      desc = [=[
6306        Sets the model to use for the mouse.  The name mostly specifies what
6307        the right mouse button is used for:
6308           extend	Right mouse button extends a selection.  This works
6309        		like in an xterm.
6310           popup	Right mouse button pops up a menu.  The shifted left
6311        		mouse button extends a selection.  This works like
6312        		with Microsoft Windows.
6313           popup_setpos Like "popup", but the cursor will be moved to the
6314        		position where the mouse was clicked, and thus the
6315        		selected operation will act upon the clicked object.
6316        		If clicking inside a selection, that selection will
6317        		be acted upon, i.e. no cursor move.  This implies of
6318        		course, that right clicking outside a selection will
6319        		end Visual mode.
6320
6321        For a detailed description of 'mousemodel' behaviour see
6322        |mouse-mode-table|.  Overview of what button does what for each model:
6323
6324        mouse		    extend		popup(_setpos) ~
6325        left click	    place cursor	place cursor
6326        left drag	    start selection	start selection
6327        shift-left	    search word		extend selection
6328        right click	    extend selection	popup menu (place cursor)
6329        right drag	    extend selection	-
6330        middle click	    paste		paste
6331
6332        In the "popup" model the right mouse button produces a pop-up menu.
6333        Nvim creates a default |popup-menu| but you can redefine it.
6334
6335        Note that you can further refine the meaning of buttons with mappings.
6336        See |mouse-overview|.  But mappings are NOT used for modeless selection.
6337
6338        Example: >vim
6339            map <S-LeftMouse>     <RightMouse>
6340            map <S-LeftDrag>      <RightDrag>
6341            map <S-LeftRelease>   <RightRelease>
6342            map <2-S-LeftMouse>   <2-RightMouse>
6343            map <2-S-LeftDrag>    <2-RightDrag>
6344            map <2-S-LeftRelease> <2-RightRelease>
6345            map <3-S-LeftMouse>   <3-RightMouse>
6346            map <3-S-LeftDrag>    <3-RightDrag>
6347            map <3-S-LeftRelease> <3-RightRelease>
6348            map <4-S-LeftMouse>   <4-RightMouse>
6349            map <4-S-LeftDrag>    <4-RightDrag>
6350            map <4-S-LeftRelease> <4-RightRelease>
6351        <
6352        Mouse commands requiring the CTRL modifier can be simulated by typing
6353        the "g" key before using the mouse:
6354            "g<LeftMouse>"  is "<C-LeftMouse>	(jump to tag under mouse click)
6355            "g<RightMouse>" is "<C-RightMouse>	("CTRL-T")
6356      ]=],
6357      full_name = 'mousemodel',
6358      scope = { 'global' },
6359      short_desc = N_('changes meaning of mouse buttons'),
6360      type = 'string',
6361      varname = 'p_mousem',
6362    },
6363    {
6364      abbreviation = 'mousemev',
6365      defaults = false,
6366      desc = [=[
6367        When on, mouse move events are delivered to the input queue and are
6368        available for mapping |<MouseMove>|.  The default, off, avoids the
6369        mouse movement overhead except when needed.
6370        Warning: Setting this option can make pending mappings to be aborted
6371        when the mouse is moved.
6372      ]=],
6373      full_name = 'mousemoveevent',
6374      redraw = { 'ui_option' },
6375      scope = { 'global' },
6376      short_desc = N_('deliver mouse move events to input queue'),
6377      tags = { 'mouse-hover' },
6378      type = 'boolean',
6379      varname = 'p_mousemev',
6380    },
6381    {
6382      cb = 'did_set_mousescroll',
6383      validation_cb = 'validate_mousescroll',
6384      defaults = 'ver:3,hor:6',
6385      schema = {
6386        dict = { { 'hor', 'num' }, { 'ver', 'num' } },
6387      },
6388      desc = [=[
6389        This option controls the number of lines / columns to scroll by when
6390        scrolling with a mouse wheel (|scroll-mouse-wheel|). The option is
6391        a comma-separated list. Each part consists of a direction and a count
6392        as follows:
6393        	direction:count,direction:count
6394        Direction is one of either "hor" or "ver". "hor" controls horizontal
6395        scrolling and "ver" controls vertical scrolling. Count sets the amount
6396        to scroll by for the given direction, it should be a non negative
6397        integer. Each direction should be set at most once. If a direction
6398        is omitted, a default value is used (6 for horizontal scrolling and 3
6399        for vertical scrolling). You can disable mouse scrolling by using
6400        a count of 0.
6401
6402        Example: >vim
6403        	set mousescroll=ver:5,hor:2
6404        <	Will make Nvim scroll 5 lines at a time when scrolling vertically, and
6405        scroll 2 columns at a time when scrolling horizontally.
6406      ]=],
6407      full_name = 'mousescroll',
6408      list = 'comma',
6409      scope = { 'global' },
6410      short_desc = N_('amount to scroll by when scrolling with a mouse'),
6411      tags = { 'E5080' },
6412      type = 'string', -- OptKeyDict_mousescroll
6413      varname = 'p_mousescroll',
6414      vi_def = true,
6415    },
6416    {
6417      abbreviation = 'mouses',
6418      deny_duplicates = true,
6419      defaults = {
6420        if_true = '',
6421        doc = [["i:beam,r:beam,s:updown,sd:cross,
6422            m:no,ml:up-arrow,v:rightup-arrow"]],
6423      },
6424      desc = [=[
6425        This option tells Vim what the mouse pointer should look like in
6426        different modes.  The option is a comma-separated list of parts, much
6427        like used for 'guicursor'.  Each part consist of a mode/location-list
6428        and an argument-list:
6429        	mode-list:shape,mode-list:shape,..
6430        The mode-list is a dash separated list of these modes/locations:
6431        		In a normal window: ~
6432        	n	Normal mode
6433        	v	Visual mode
6434        	ve	Visual mode with 'selection' "exclusive" (same as 'v',
6435        		if not specified)
6436        	o	Operator-pending mode
6437        	i	Insert mode
6438        	r	Replace mode
6439
6440        		Others: ~
6441        	c	appending to the command-line
6442        	ci	inserting in the command-line
6443        	cr	replacing in the command-line
6444        	m	at the 'Hit ENTER' or 'More' prompts
6445        	ml	idem, but cursor in the last line
6446        	e	any mode, pointer below last window
6447        	s	any mode, pointer on a status line
6448        	sd	any mode, while dragging a status line
6449        	vs	any mode, pointer on a vertical separator line
6450        	vd	any mode, while dragging a vertical separator line
6451        	a	everywhere
6452
6453        The shape is one of the following:
6454        avail	name		looks like ~
6455        w x	arrow		Normal mouse pointer
6456        w x	blank		no pointer at all (use with care!)
6457        w x	beam		I-beam
6458        w x	updown		up-down sizing arrows
6459        w x	leftright	left-right sizing arrows
6460        w x	busy		The system's usual busy pointer
6461        w x	no		The system's usual "no input" pointer
6462          x	udsizing	indicates up-down resizing
6463          x	lrsizing	indicates left-right resizing
6464          x	crosshair	like a big thin +
6465          x	hand1		black hand
6466          x	hand2		white hand
6467          x	pencil		what you write with
6468          x	question	big ?
6469          x	rightup-arrow	arrow pointing right-up
6470        w x	up-arrow	arrow pointing up
6471          x	<number>	any X11 pointer number (see X11/cursorfont.h)
6472
6473        The "avail" column contains a 'w' if the shape is available for Win32,
6474        x for X11.
6475        Any modes not specified or shapes not available use the normal mouse
6476        pointer.
6477
6478        Example: >vim
6479        	set mouseshape=s:udsizing,m:no
6480        <	will make the mouse turn to a sizing arrow over the status lines and
6481        indicate no input when the hit-enter prompt is displayed (since
6482        clicking the mouse has no effect in this state.)
6483      ]=],
6484      full_name = 'mouseshape',
6485      list = 'onecomma',
6486      scope = { 'global' },
6487      short_desc = N_('shape of the mouse pointer in different modes'),
6488      tags = { 'E547' },
6489      type = 'string',
6490      immutable = true,
6491    },
6492    {
6493      abbreviation = 'mouset',
6494      defaults = 500,
6495      desc = [=[
6496        Defines the maximum time in msec between two mouse clicks for the
6497        second click to be recognized as a multi click.
6498      ]=],
6499      full_name = 'mousetime',
6500      scope = { 'global' },
6501      short_desc = N_('max time between mouse double-click'),
6502      type = 'number',
6503      varname = 'p_mouset',
6504    },
6505    {
6506      abbreviation = 'nf',
6507      validation_cb = 'validate_str_generic',
6508      defaults = 'bin,hex',
6509      schema = {
6510        set = { 'bin', 'octal', 'hex', 'alpha', 'unsigned', 'blank' },
6511      },
6512      deny_duplicates = true,
6513      desc = [=[
6514        This defines what bases Vim will consider for numbers when using the
6515        CTRL-A and CTRL-X commands for adding to and subtracting from a number
6516        respectively; see |CTRL-A| for more info on these commands.
6517        alpha	If included, single alphabetical characters will be
6518        	incremented or decremented.  This is useful for a list with a
6519        	letter index a), b), etc.		*octal-nrformats*
6520        octal	If included, numbers that start with a zero will be considered
6521        	to be octal.  Example: Using CTRL-A on "007" results in "010".
6522        hex	If included, numbers starting with "0x" or "0X" will be
6523        	considered to be hexadecimal.  Example: Using CTRL-X on
6524        	"0x100" results in "0x0ff".
6525        bin	If included, numbers starting with "0b" or "0B" will be
6526        	considered to be binary.  Example: Using CTRL-X on
6527        	"0b1000" subtracts one, resulting in "0b0111".
6528        unsigned    If included, numbers are recognized as unsigned.  Thus a
6529        	leading dash or negative sign won't be considered as part of
6530        	the number.  Examples:
6531        	    Using CTRL-X on "2020" in "9-2020" results in "9-2019"
6532        	    (without "unsigned" it would become "9-2021").
6533        	    Using CTRL-A on "2020" in "9-2020" results in "9-2021"
6534        	    (without "unsigned" it would become "9-2019").
6535        	    Using CTRL-X on "0" or CTRL-A on "18446744073709551615"
6536        	    (2^64 - 1) has no effect, overflow is prevented.
6537        blank	If included, treat numbers as signed or unsigned based on
6538        	preceding whitespace.  If a number with a leading dash has its
6539        	dash immediately preceded by a non-whitespace character (i.e.,
6540        	not a tab or a " "), the negative sign won't be considered as
6541        	part of the number.  For example:
6542        	    Using CTRL-A on "14" in "Carbon-14" results in "Carbon-15"
6543        	    (without "blank" it would become "Carbon-13").
6544        	    Using CTRL-X on "8" in "Carbon -8" results in "Carbon -9"
6545        	    (because -8 is preceded by whitespace.  If "unsigned" was
6546        	    set, it would result in "Carbon -7").
6547        	If this format is included, overflow is prevented as if
6548        	"unsigned" were set.  If both this format and "unsigned" are
6549        	included, "unsigned" will take precedence.
6550
6551        Numbers which simply begin with a digit in the range 1-9 are always
6552        considered decimal.  This also happens for numbers that are not
6553        recognized as octal or hex.
6554      ]=],
6555      full_name = 'nrformats',
6556      list = 'onecomma',
6557      scope = { 'buf' },
6558      short_desc = N_('number formats recognized for CTRL-A command'),
6559      type = 'string',
6560      varname = 'p_nf',
6561    },
6562    {
6563      abbreviation = 'nu',
6564      cb = 'did_set_number_relativenumber',
6565      defaults = false,
6566      desc = [=[
6567        Print the line number in front of each line.  When the 'n' option is
6568        excluded from 'cpoptions' a wrapped line will not use the column of
6569        line numbers.
6570        Use the 'numberwidth' option to adjust the room for the line number.
6571        When a long, wrapped line doesn't start with the first character, '-'
6572        characters are put before the number.
6573        For highlighting see |hl-LineNr|, |hl-CursorLineNr|, and the
6574        |:sign-define| "numhl" argument.
6575        					*number_relativenumber*
6576        The 'relativenumber' option changes the displayed number to be
6577        relative to the cursor.  Together with 'number' there are these
6578        four combinations (cursor in line 3):
6579
6580        	'nonu'          'nu'            'nonu'          'nu'
6581        	'nornu'         'nornu'         'rnu'           'rnu'
6582        >
6583            |apple          |  1 apple      |  2 apple      |  2 apple
6584            |pear           |  2 pear       |  1 pear       |  1 pear
6585            |nobody         |  3 nobody     |  0 nobody     |3   nobody
6586            |there          |  4 there      |  1 there      |  1 there
6587        <
6588      ]=],
6589      full_name = 'number',
6590      redraw = { 'current_window' },
6591      scope = { 'win' },
6592      short_desc = N_('print the line number in front of each line'),
6593      type = 'boolean',
6594    },
6595    {
6596      abbreviation = 'nuw',
6597      cb = 'did_set_numberwidth',
6598      defaults = 4,
6599      desc = [=[
6600        Minimal number of columns to use for the line number.  Only relevant
6601        when the 'number' or 'relativenumber' option is set or printing lines
6602        with a line number.  Since one space is always between the number and
6603        the text, there is one less character for the number itself.
6604        The value is the minimum width.  A bigger width is used when needed to
6605        fit the highest line number in the buffer respectively the number of
6606        rows in the window, depending on whether 'number' or 'relativenumber'
6607        is set.  Thus with the Vim default of 4 there is room for a line
6608        number up to 999.  When the buffer has 1000 lines five columns will be
6609        used. The minimum value is 1, the maximum value is 20.
6610      ]=],
6611      full_name = 'numberwidth',
6612      redraw = { 'current_window' },
6613      scope = { 'win' },
6614      short_desc = N_('number of columns used for the line number'),
6615      type = 'number',
6616    },
6617    {
6618      abbreviation = 'ofu',
6619      defaults = '',
6620      desc = [=[
6621        This option specifies a function to be used for Insert mode omni
6622        completion with CTRL-X CTRL-O. |i_CTRL-X_CTRL-O|
6623        See |complete-functions| for an explanation of how the function is
6624        invoked and what it should return.  The value can be the name of a
6625        function, a |lambda| or a |Funcref|.  See |option-value-function| for
6626        more information.
6627        This option is usually set by a filetype plugin:
6628        |:filetype-plugin-on|
6629      ]=],
6630      full_name = 'omnifunc',
6631      scope = { 'buf' },
6632      secure = true,
6633      short_desc = N_('function for filetype-specific completion'),
6634      type = 'func',
6635      varname = 'p_ofu',
6636    },
6637    {
6638      abbreviation = 'odev',
6639      defaults = false,
6640      desc = [=[
6641        		only for Windows
6642        Enable reading and writing from devices.  This may get Vim stuck on a
6643        device that can be opened but doesn't actually do the I/O.  Therefore
6644        it is off by default.
6645        Note that on Windows editing "aux.h", "lpt1.txt" and the like also
6646        result in editing a device.
6647      ]=],
6648      full_name = 'opendevice',
6649      scope = { 'global' },
6650      short_desc = N_('allow reading/writing devices on MS-Windows'),
6651      type = 'boolean',
6652      immutable = true,
6653    },
6654    {
6655      abbreviation = 'opfunc',
6656      defaults = '',
6657      desc = [=[
6658        This option specifies a function to be called by the |g@| operator.
6659        See |:map-operator| for more info and an example.  The value can be
6660        the name of a function, a |lambda| or a |Funcref|.  See
6661        |option-value-function| for more information.
6662      ]=],
6663      full_name = 'operatorfunc',
6664      scope = { 'global' },
6665      secure = true,
6666      short_desc = N_('function to be called for |g@| operator'),
6667      type = 'func',
6668      varname = 'p_opfunc',
6669    },
6670    {
6671      abbreviation = 'plf',
6672      defaults = '$XDG_CONFIG_HOME/nvim/nvim-pack-lock.json',
6673      deny_duplicates = true,
6674      desc = [=[
6675        Path of |vim.pack-lockfile|. Must be set before the first usage of any
6676        |vim.pack| function. Environment variables are expanded |:set_env|.
6677      ]=],
6678      expand = 'nodefault',
6679      full_name = 'packlockfile',
6680      scope = { 'global' },
6681      secure = true,
6682      short_desc = N_('path of vim.pack lockfile'),
6683      type = 'string',
6684      varname = 'p_plf',
6685    },
6686    {
6687      abbreviation = 'pp',
6688      cb = 'did_set_runtimepackpath',
6689      defaults = {
6690        if_true = '',
6691        doc = "see 'runtimepath'",
6692        meta = '...',
6693      },
6694      deny_duplicates = true,
6695      desc = [=[
6696        Directories used to find packages.
6697        See |packages| and |packages-runtimepath|.
6698        Environment variables are expanded |:set_env|.
6699      ]=],
6700      expand = true,
6701      full_name = 'packpath',
6702      list = 'onecomma',
6703      scope = { 'global' },
6704      secure = true,
6705      short_desc = N_('list of directories used for packages'),
6706      type = 'string',
6707      varname = 'p_pp',
6708    },
6709    {
6710      abbreviation = 'para',
6711      defaults = 'IPLPPPQPP TPHPLIPpLpItpplpipbp',
6712      desc = [=[
6713        Specifies the nroff macros that separate paragraphs.  These are pairs
6714        of two letters (see |object-motions|).
6715      ]=],
6716      full_name = 'paragraphs',
6717      scope = { 'global' },
6718      short_desc = N_('nroff macros that separate paragraphs'),
6719      type = 'string',
6720      varname = 'p_para',
6721    },
6722    {
6723      cb = 'did_set_paste',
6724      defaults = false,
6725      full_name = 'paste',
6726      pri_mkrc = true,
6727      scope = { 'global' },
6728      short_desc = N_('Deprecated'),
6729      type = 'boolean',
6730      varname = 'p_paste',
6731    },
6732    {
6733      abbreviation = 'pt',
6734      defaults = '',
6735      full_name = 'pastetoggle',
6736      scope = { 'global' },
6737      short_desc = N_('Deprecated'),
6738      type = 'string',
6739      immutable = true,
6740    },
6741    {
6742      abbreviation = 'pex',
6743      defaults = '',
6744      desc = [=[
6745        Expression which is evaluated to apply a patch to a file and generate
6746        the resulting new version of the file.  See |diff-patchexpr|.
6747      ]=],
6748      full_name = 'patchexpr',
6749      scope = { 'global' },
6750      secure = true,
6751      short_desc = N_('expression used to patch a file'),
6752      type = 'expr',
6753      varname = 'p_pex',
6754    },
6755    {
6756      abbreviation = 'pm',
6757      validation_cb = 'validate_backupext_or_patchmode',
6758      defaults = '',
6759      desc = [=[
6760        When non-empty the oldest version of a file is kept.  This can be used
6761        to keep the original version of a file if you are changing files in a
6762        source distribution.  Only the first time that a file is written a
6763        copy of the original file will be kept.  The name of the copy is the
6764        name of the original file with the string in the 'patchmode' option
6765        appended.  This option should start with a dot.  Use a string like
6766        ".orig" or ".org".  'backupdir' must not be empty for this to work
6767        (Detail: The backup file is renamed to the patchmode file after the
6768        new file has been successfully written, that's why it must be possible
6769        to write a backup file).  If there was no file to be backed up, an
6770        empty file is created.
6771        When the 'backupskip' pattern matches, a patchmode file is not made.
6772        Using 'patchmode' for compressed files appends the extension at the
6773        end (e.g., "file.gz.orig"), thus the resulting name isn't always
6774        recognized as a compressed file.
6775        Only normal file name characters can be used, `/\*?[|<>` are illegal.
6776      ]=],
6777      full_name = 'patchmode',
6778      normal_fname_chars = true,
6779      scope = { 'global' },
6780      short_desc = N_('keep the oldest version of a file'),
6781      tags = { 'E205', 'E206' },
6782      type = 'string',
6783      varname = 'p_pm',
6784    },
6785    {
6786      abbreviation = 'pa',
6787      defaults = '.,,',
6788      deny_duplicates = true,
6789      desc = [=[
6790        This is a list of directories which will be searched when using the
6791        |gf|, [f, ]f, ^Wf, |:find|, |:sfind|, |:tabfind| and other commands,
6792        provided that the file being searched for has a relative path (not
6793        starting with "/", "./" or "../").  The directories in the 'path'
6794        option may be relative or absolute.
6795        - Use commas to separate directory names: >vim
6796        	set path=.,/usr/local/include,/usr/include
6797        <	- Spaces can also be used to separate directory names.  To have a
6798          space in a directory name, precede it with an extra backslash, and
6799          escape the space: >vim
6800        	set path=.,/dir/with\\\ space
6801        <	- To include a comma in a directory name precede it with an extra
6802          backslash: >vim
6803        	set path=.,/dir/with\\,comma
6804        <	- To search relative to the directory of the current file, use: >vim
6805        	set path=.
6806        <	- To search in the current directory use an empty string between two
6807          commas: >vim
6808        	set path=,,
6809        <	- A directory name may end in a ':' or '/'.
6810        - Environment variables are expanded |:set_env|.
6811        - When using |netrw| URLs can be used.  For example, adding
6812          "https://www.vim.org" will make ":find index.html" work.
6813        - Search upwards and downwards in a directory tree using "*", "**" and
6814          ";".  See |file-searching| for info and syntax.
6815        - Careful with '\' characters, type two to get one in the option: >vim
6816        	set path=.,c:\\include
6817        <	  Or just use '/' instead: >vim
6818        	set path=.,c:/include
6819        <	Don't forget "." or files won't even be found in the same directory as
6820        the file!
6821        The maximum length is limited.  How much depends on the system, mostly
6822        it is something like 256 or 1024 characters.
6823        You can check if all the include files are found, using the value of
6824        'path', see |:checkpath|.
6825        The use of |:set+=| and |:set-=| is preferred when adding or removing
6826        directories from the list.  This avoids problems when a future version
6827        uses another default.  To remove the current directory use: >vim
6828        	set path-=
6829        <	To add the current directory use: >vim
6830        	set path+=
6831        <	To use an environment variable, you probably need to replace the
6832        separator.  Here is an example to append $INCL, in which directory
6833        names are separated with a semicolon: >vim
6834        	let &path = &path .. "," .. substitute($INCL, ';', ',', 'g')
6835        <	Replace the ';' with a ':' or whatever separator is used.  Note that
6836        this doesn't work when $INCL contains a comma or white space.
6837      ]=],
6838      expand = true,
6839      full_name = 'path',
6840      list = 'comma',
6841      scope = { 'global', 'buf' },
6842      short_desc = N_('list of directories searched with "gf" et.al.'),
6843      tags = { 'E343', 'E345', 'E347', 'E854' },
6844      type = 'string',
6845      varname = 'p_path',
6846    },
6847    {
6848      abbreviation = 'pi',
6849      defaults = false,
6850      desc = [=[
6851        When changing the indent of the current line, preserve as much of the
6852        indent structure as possible.  Normally the indent is replaced by a
6853        series of tabs followed by spaces as required (unless 'expandtab' is
6854        enabled, in which case only spaces are used).  Enabling this option
6855        means the indent will preserve as many existing characters as possible
6856        for indenting, and only add additional tabs or spaces as required.
6857        'expandtab' does not apply to the preserved white space, a Tab remains
6858        a Tab.
6859        NOTE: When using ">>" multiple times the resulting indent is a mix of
6860        tabs and spaces.  You might not like this.
6861        Also see 'copyindent'.
6862        Use |:retab| to clean up white space.
6863      ]=],
6864      full_name = 'preserveindent',
6865      scope = { 'buf' },
6866      short_desc = N_('preserve the indent structure when reindenting'),
6867      type = 'boolean',
6868      varname = 'p_pi',
6869    },
6870    {
6871      abbreviation = 'pvh',
6872      defaults = 12,
6873      desc = [=[
6874        Default height for a preview window.  Used for |:ptag| and associated
6875        commands.  Used for |CTRL-W_}| when no count is given.
6876      ]=],
6877      full_name = 'previewheight',
6878      scope = { 'global' },
6879      short_desc = N_('height of the preview window'),
6880      type = 'number',
6881      varname = 'p_pvh',
6882    },
6883    {
6884      abbreviation = 'pvp',
6885      validation_cb = 'validate_previewpopup',
6886      schema = {
6887        dict = {
6888          { 'height', 'num' },
6889          { 'width', 'num' },
6890          -- Only the named 'winborder' styles; a custom (comma) border can't be given here.
6891          {
6892            'border',
6893            'enum',
6894            { values = { 'double', 'single', 'shadow', 'rounded', 'solid', 'bold', 'none' } },
6895          },
6896        },
6897      },
6898      expand_cb = 'expand_set_popupoption',
6899      defaults = { if_true = '' },
6900      desc = [=[
6901        When not empty a floating window is used for commands that would open
6902        a preview window.  See |preview-popup|.
6903        The option is a comma-separated list of these items:
6904           height  Height of the window.  When omitted, it is derived from
6905                   the content.
6906           width   Width of the window.  When omitted, it is derived from
6907                   the content.
6908           border  One of the 'winborder' styles.  When omitted, 'winborder'
6909                   is used.  A custom (comma separated) border cannot be
6910                   given here, use 'winborder'.
6911        The window background uses |hl-NormalFloat| and the border uses
6912        |hl-FloatBorder|.
6913        Not used for the insert completion info, add "popup" to 'completeopt'
6914        for that.
6915
6916        Example: >vim
6917        	set previewpopup=height:10,width:60,border:rounded
6918        <
6919      ]=],
6920      full_name = 'previewpopup',
6921      list = 'commacolon',
6922      scope = { 'global' },
6923      short_desc = N_('use a floating window for preview'),
6924      type = 'string',
6925      varname = 'p_pvp',
6926    },
6927    {
6928      abbreviation = 'pvw',
6929      validation_cb = 'validate_previewwindow',
6930      defaults = false,
6931      desc = [=[
6932        Identifies the preview window.  Only one window can have this option
6933        set.  It's normally not set directly, but by using one of the commands
6934        |:ptag|, |:pedit|, etc.
6935      ]=],
6936      full_name = 'previewwindow',
6937      noglob = true,
6938      redraw = { 'statuslines' },
6939      scope = { 'win' },
6940      short_desc = N_('identifies the preview window'),
6941      tags = { 'E590' },
6942      type = 'boolean',
6943    },
6944    {
6945      defaults = true,
6946      full_name = 'prompt',
6947      scope = { 'global' },
6948      short_desc = N_('enable prompt in Ex mode'),
6949      type = 'boolean',
6950      immutable = true,
6951    },
6952    {
6953      abbreviation = 'pb',
6954      cb = 'did_set_pumblend',
6955      defaults = 0,
6956      desc = [=[
6957        Enables pseudo-transparency for the |popup-menu|. Valid values are in
6958        the range of 0 for fully opaque popupmenu (disabled) to 100 for fully
6959        transparent background. Values between 0-30 are typically most useful.
6960
6961        It is possible to override the level for individual highlights within
6962        the popupmenu using |highlight-blend|. For instance, to enable
6963        transparency but force the current selected element to be fully opaque: >vim
6964
6965        	set pumblend=15
6966        	hi PmenuSel blend=0
6967        <
6968        UI-dependent. Works best with RGB colors. 'termguicolors'
6969      ]=],
6970      full_name = 'pumblend',
6971      redraw = { 'ui_option' },
6972      scope = { 'global' },
6973      short_desc = N_('Controls transparency level of popup menu'),
6974      type = 'number',
6975      varname = 'p_pb',
6976    },
6977    {
6978      full_name = 'pumborder',
6979      scope = { 'global' },
6980      validation_cb = 'validate_border',
6981      defaults = { if_true = '' },
6982      schema = {
6983        set = { '', 'double', 'single', 'shadow', 'rounded', 'solid', 'bold', 'none' },
6984      },
6985      desc = [=[
6986        Defines the default border style of popupmenu windows. See 'winborder' for
6987        valid values. |hl-PmenuBorder| is used for highlighting the border, and when
6988        style is "shadow" the |hl-PmenuShadow| and |hl-PmenuShadowThrough| groups are used.
6989
6990        This option also applies to mouse popup menus when 'mousemodel' is set to
6991        "popup" or "popup_setpos", which will display borders using the same style.
6992      ]=],
6993      short_desc = N_('border of popupmenu'),
6994      type = 'string',
6995      list = 'onecomma',
6996      varname = 'p_pumborder',
6997    },
6998    {
6999      abbreviation = 'ph',
7000      defaults = 0,
7001      desc = [=[
7002        Maximum number of items to show in the popup menu
7003        (|ins-completion-menu|). Zero means "use available screen space".
7004      ]=],
7005      full_name = 'pumheight',
7006      scope = { 'global' },
7007      short_desc = N_('maximum height of the popup menu'),
7008      type = 'number',
7009      varname = 'p_ph',
7010    },
7011    {
7012      abbreviation = 'pmw',
7013      defaults = 0,
7014      desc = [=[
7015        Maximum width for the popup menu (|ins-completion-menu|).  When zero,
7016        there is no maximum width limit, otherwise the popup menu will never be
7017        wider than this value.  Truncated text will be indicated by "trunc"
7018        value of 'fillchars' option.
7019
7020        This option takes precedence over 'pumwidth'.
7021      ]=],
7022      full_name = 'pummaxwidth',
7023      scope = { 'global' },
7024      short_desc = N_('maximum width of the popup menu'),
7025      type = 'number',
7026      varname = 'p_pmw',
7027    },
7028    {
7029      abbreviation = 'pw',
7030      defaults = 15,
7031      desc = [=[
7032        Minimum width for the popup menu (|ins-completion-menu|).  If the
7033        cursor column + 'pumwidth' exceeds screen width, the popup menu is
7034        nudged to fit on the screen.
7035      ]=],
7036      full_name = 'pumwidth',
7037      scope = { 'global' },
7038      short_desc = N_('minimum width of the popup menu'),
7039      type = 'number',
7040      varname = 'p_pw',
7041    },
7042    {
7043      abbreviation = 'pyx',
7044      defaults = 3,
7045      desc = [=[
7046        Specifies the python version used for pyx* functions and commands
7047        |python_x|.  As only Python 3 is supported, this always has the value
7048        `3`. Setting any other value is an error.
7049      ]=],
7050      full_name = 'pyxversion',
7051      scope = { 'global' },
7052      secure = true,
7053      short_desc = N_('selects default python version to use'),
7054      type = 'number',
7055      varname = 'p_pyx',
7056    },
7057    {
7058      abbreviation = 'qftf',
7059      defaults = '',
7060      desc = [=[
7061        This option specifies a function to be used to get the text to display
7062        in the quickfix and location list windows.  This can be used to
7063        customize the information displayed in the quickfix or location window
7064        for each entry in the corresponding quickfix or location list.  See
7065        |quickfix-window-function| for an explanation of how to write the
7066        function and an example.  The value can be the name of a function, a
7067        |lambda| or a |Funcref|.  See |option-value-function| for more
7068        information.
7069
7070        It is not allowed to change text or jump to another window while
7071        evaluating 'qftf' |textlock|.
7072      ]=],
7073      full_name = 'quickfixtextfunc',
7074      scope = { 'global' },
7075      secure = true,
7076      short_desc = N_('customize the quickfix window'),
7077      type = 'func',
7078      varname = 'p_qftf',
7079    },
7080    {
7081      abbreviation = 'qe',
7082      defaults = '\\',
7083      desc = [=[
7084        The characters that are used to escape quotes in a string.  Used for
7085        objects like a', a" and a` |a'|.
7086        When one of the characters in this option is found inside a string,
7087        the following character will be skipped.  The default value makes the
7088        text "foo\"bar\\" considered to be one string.
7089      ]=],
7090      full_name = 'quoteescape',
7091      scope = { 'buf' },
7092      short_desc = N_('escape characters used in a string'),
7093      type = 'string',
7094      varname = 'p_qe',
7095    },
7096    {
7097      abbreviation = 'ro',
7098      cb = 'did_set_readonly',
7099      defaults = false,
7100      desc = [=[
7101        If on, writes fail unless you use a '!'.  Protects you from
7102        accidentally overwriting a file.  Default on when Vim is started
7103        in read-only mode ("vim -R") or when the executable is called "view".
7104        When using ":w!" the 'readonly' option is reset for the current
7105        buffer, unless the 'Z' flag is in 'cpoptions'.
7106        When using the ":view" command the 'readonly' option is set for the
7107        newly edited buffer.
7108        See 'modifiable' for disallowing changes to the buffer.
7109      ]=],
7110      full_name = 'readonly',
7111      noglob = true,
7112      redraw = { 'statuslines' },
7113      scope = { 'buf' },
7114      short_desc = N_('disallow writing the buffer'),
7115      type = 'boolean',
7116      varname = 'p_ro',
7117    },
7118    {
7119      abbreviation = 'rdb',
7120      validation_cb = 'validate_str_generic',
7121      defaults = '',
7122      schema = {
7123        flags = {
7124          'compositor',
7125          'nothrottle',
7126          'invalid',
7127          'nodelta',
7128          'line',
7129          'flush',
7130        },
7131      },
7132      desc = [=[
7133        Flags to change the way redrawing works, for debugging purposes.
7134        Most useful with 'writedelay' set to some reasonable value.
7135        Supports the following flags:
7136            compositor	Indicate each redraw event handled by the compositor
7137        		by briefly flashing the redrawn regions in colors
7138        		indicating the redraw type. These are the highlight
7139        		groups used (and their default colors):
7140        	RedrawDebugNormal   gui=reverse   normal redraw passed through
7141        	RedrawDebugClear    guibg=Yellow  clear event passed through
7142        	RedrawDebugComposed guibg=Green   redraw event modified by the
7143        					  compositor (due to
7144        					  overlapping grids, etc)
7145        	RedrawDebugRecompose guibg=Red    redraw generated by the
7146        					  compositor itself, due to a
7147        					  grid being moved or deleted.
7148            line	introduce a delay after each line drawn on the screen.
7149        		When using the TUI or another single-grid UI, "compositor"
7150        		gives more information and should be preferred (every
7151        		line is processed as a separate event by the compositor)
7152            flush	introduce a delay after each "flush" event.
7153            nothrottle	Turn off throttling of the message grid. This is an
7154        		optimization that joins many small scrolls to one
7155        		larger scroll when drawing the message area (with
7156        		'display' msgsep flag active).
7157            invalid	Enable stricter checking (abort) of inconsistencies
7158        		of the internal screen state. This is mostly
7159        		useful when running nvim inside a debugger (and
7160        		the test suite).
7161            nodelta	Send all internally redrawn cells to the UI, even if
7162        		they are unchanged from the already displayed state.
7163      ]=],
7164      full_name = 'redrawdebug',
7165      list = 'onecomma',
7166      scope = { 'global' },
7167      short_desc = N_('Changes the way redrawing works (debug)'),
7168      type = 'string',
7169      varname = 'p_rdb',
7170      flags_varname = 'rdb_flags',
7171    },
7172    {
7173      abbreviation = 'rdt',
7174      defaults = 2000,
7175      desc = [=[
7176        Time in milliseconds for redrawing the display.  Applies to
7177        'hlsearch', 'inccommand', |:match| highlighting, syntax highlighting,
7178        and async |LanguageTree:parse()|.
7179        When redrawing takes more than this many milliseconds no further
7180        matches will be highlighted.
7181        For syntax highlighting the time applies per window.  When over the
7182        limit syntax highlighting is disabled until |CTRL-L| is used.
7183        This is used to avoid that Vim hangs when using a very complicated
7184        pattern.
7185      ]=],
7186      full_name = 'redrawtime',
7187      scope = { 'global' },
7188      short_desc = N_("timeout for 'hlsearch' and |:match| highlighting"),
7189      type = 'number',
7190      varname = 'p_rdt',
7191    },
7192    {
7193      abbreviation = 're',
7194      defaults = 0,
7195      desc = [=[
7196        This selects the default regexp engine. |two-engines|
7197        The possible values are:
7198        	0	automatic selection
7199        	1	old engine
7200        	2	NFA engine
7201        Note that when using the NFA engine and the pattern contains something
7202        that is not supported the pattern will not match.  This is only useful
7203        for debugging the regexp engine.
7204        Using automatic selection enables Vim to switch the engine, if the
7205        default engine becomes too costly.  E.g., when the NFA engine uses too
7206        many states.  This should prevent Vim from hanging on a combination of
7207        a complex pattern with long text.
7208      ]=],
7209      full_name = 'regexpengine',
7210      scope = { 'global' },
7211      short_desc = N_('default regexp engine to use'),
7212      type = 'number',
7213      varname = 'p_re',
7214    },
7215    {
7216      abbreviation = 'rnu',
7217      cb = 'did_set_number_relativenumber',
7218      defaults = false,
7219      desc = [=[
7220        Show the line number relative to the line with the cursor in front of
7221        each line.  Relative line numbers help you use the |count| you can
7222        precede some vertical motion commands (e.g. j k + -) with, without
7223        having to calculate it yourself.  Especially useful in combination
7224        with other commands (e.g. y d c < > gq gw =).
7225        When the 'n' option is excluded from 'cpoptions' a wrapped line will
7226        not use the column of line numbers.
7227        The 'numberwidth' option can be used to set the room used for the line
7228        number.
7229        When a long, wrapped line doesn't start with the first character, '-'
7230        characters are put before the number.
7231        See |hl-LineNr|  and |hl-CursorLineNr| for the highlighting used for
7232        the number.
7233
7234        The number in front of the cursor line also depends on the value of
7235        'number', see |number_relativenumber| for all combinations of the two
7236        options.
7237      ]=],
7238      full_name = 'relativenumber',
7239      redraw = { 'current_window' },
7240      scope = { 'win' },
7241      short_desc = N_('show relative line number in front of each line'),
7242      type = 'boolean',
7243    },
7244    {
7245      defaults = true,
7246      full_name = 'remap',
7247      scope = { 'global' },
7248      short_desc = N_('Deprecated'),
7249      type = 'boolean',
7250      immutable = true,
7251    },
7252    {
7253      defaults = 2,
7254      desc = [=[
7255        Threshold for reporting number of lines changed.  When the number of
7256        changed lines is more than 'report' a message will be given for most
7257        ":" commands.  If you want it always, set 'report' to 0.
7258        For the ":substitute" command the number of substitutions is used
7259        instead of the number of lines.
7260      ]=],
7261      full_name = 'report',
7262      scope = { 'global' },
7263      short_desc = N_('for reporting nr. of lines changed'),
7264      type = 'number',
7265      varname = 'p_report',
7266    },
7267    {
7268      abbreviation = 'ri',
7269      defaults = false,
7270      desc = [=[
7271        Inserting characters in Insert mode will work backwards.  See "typing
7272        backwards" |ins-reverse|.  This option can be toggled with the CTRL-_
7273        command in Insert mode, when 'allowrevins' is set.
7274      ]=],
7275      full_name = 'revins',
7276      scope = { 'global' },
7277      short_desc = N_('inserting characters will work backwards'),
7278      type = 'boolean',
7279      varname = 'p_ri',
7280    },
7281    {
7282      abbreviation = 'rl',
7283      defaults = false,
7284      desc = [=[
7285        When on, display orientation becomes right-to-left, i.e., characters
7286        that are stored in the file appear from the right to the left.
7287        Using this option, it is possible to edit files for languages that
7288        are written from the right to the left such as Hebrew and Arabic.
7289        This option is per window, so it is possible to edit mixed files
7290        simultaneously, or to view the same file in both ways (this is
7291        useful whenever you have a mixed text file with both right-to-left
7292        and left-to-right strings so that both sets are displayed properly
7293        in different windows).  Also see |rileft.txt|.
7294      ]=],
7295      full_name = 'rightleft',
7296      redraw = { 'current_window' },
7297      scope = { 'win' },
7298      short_desc = N_('window is right-to-left oriented'),
7299      type = 'boolean',
7300    },
7301    {
7302      abbreviation = 'rlc',
7303      validation_cb = 'validate_str_generic',
7304      defaults = 'search',
7305      schema = {
7306        set = { 'search' },
7307      },
7308      desc = [=[
7309        Each word in this option enables the command line editing to work in
7310        right-to-left mode for a group of commands:
7311
7312        	search		"/" and "?" commands
7313
7314        This is useful for languages such as Hebrew, Arabic and Farsi.
7315        The 'rightleft' option must be set for 'rightleftcmd' to take effect.
7316      ]=],
7317      full_name = 'rightleftcmd',
7318      list = 'comma',
7319      redraw = { 'current_window' },
7320      scope = { 'win' },
7321      short_desc = N_('commands for which editing works right-to-left'),
7322      type = 'string',
7323    },
7324    {
7325      abbreviation = 'ru',
7326      defaults = true,
7327      desc = [=[
7328        When on, show some buffer information in the ruler.  Each window has
7329        its own ruler.  The ruler of the active window is shown in the last
7330        line of the screen, unless 'cmdheight' is zero, or the window has a
7331        status line, which (by default) contains the window's ruler.
7332
7333        'rulerformat' determines the contents of the ruler.
7334        By default, the line and column number of the current cursor position
7335        are shown, separated by a comma.
7336        If the number of characters displayed is different from the number of
7337        bytes in the text (e.g., for a TAB or a multibyte character), both
7338        the text column (byte number) and the screen column are shown,
7339        separated with a dash.
7340        For an empty line "0-1" is shown.
7341        For an empty buffer the line number will also be zero: "0,0-1".
7342        Finally, the relative position of the displayed text in the file is
7343        shown on the far right:
7344        	Top	first line is visible
7345        	Bot	last line is visible
7346        	All	first and last line are visible
7347        	45%	relative position in the file
7348
7349        If you don't want to see the ruler all the time but want to know where
7350        you are, use "g CTRL-G" |g_CTRL-G|.
7351        When 'ruler' is on, the output of |CTRL-G| doen't contain the current
7352        line number of the cursor position.
7353      ]=],
7354      full_name = 'ruler',
7355      redraw = { 'statuslines' },
7356      scope = { 'global' },
7357      short_desc = N_('show cursor line and column in the status line'),
7358      type = 'boolean',
7359      varname = 'p_ru',
7360    },
7361    {
7362      abbreviation = 'ruf',
7363      cb = 'did_set_rulerformat',
7364      validation_cb = 'validate_statustabline_rulerformat',
7365      defaults = '%18(%l,%c%V%= %P%)%<',
7366      desc = [=[
7367        This option determines the content of the ruler string, as displayed
7368        for the 'ruler' option.
7369        The format of this option is like that of 'statusline'.
7370        Setting to empty (`:set rulerformat=`) sets the value to the default.
7371        This option cannot be set in a modeline when 'modelineexpr' is off.
7372
7373        When 'ruler' is on, the default 'statusline' includes 'rulerformat'.
7374
7375        The default ruler width is 18 characters, which is configured with
7376        what looks like an item group.  But there are some differences in this
7377        particular case.  Most notably, the width is fixed and not a minimum,
7378        and the ruler is left-aligned, whereas the alignment of item groups is
7379        configurable and right-aligned by default.
7380
7381        When |ui2| is enabled, the ruler no longer has a fixed width and the
7382        item group syntax has no special meaning for 'rulerformat'.
7383      ]=],
7384      full_name = 'rulerformat',
7385      modelineexpr = true,
7386      redraw = { 'statuslines' },
7387      scope = { 'global' },
7388      short_desc = N_('custom format for the ruler'),
7389      type = 'string',
7390      varname = 'p_ruf',
7391    },
7392    {
7393      abbreviation = 'rtp',
7394      cb = 'did_set_runtimepackpath',
7395      defaults = {
7396        if_true = '',
7397        doc = [["$XDG_CONFIG_HOME/nvim,
7398                     $XDG_CONFIG_DIRS[1]/nvim,
7399                     $XDG_CONFIG_DIRS[2]/nvim,
7400                     …
7401                     $XDG_DATA_HOME/nvim[-data]/site,
7402                     $XDG_DATA_DIRS[1]/nvim/site,
7403                     $XDG_DATA_DIRS[2]/nvim/site,
7404                     …
7405                     $VIMRUNTIME,
7406                     …
7407                     $XDG_DATA_DIRS[2]/nvim/site/after,
7408                     $XDG_DATA_DIRS[1]/nvim/site/after,
7409                     $XDG_DATA_HOME/nvim[-data]/site/after,
7410                     …
7411                     $XDG_CONFIG_DIRS[2]/nvim/after,
7412                     $XDG_CONFIG_DIRS[1]/nvim/after,
7413                     $XDG_CONFIG_HOME/nvim/after"]],
7414        meta = '...',
7415      },
7416      deny_duplicates = true,
7417      desc = [=[
7418        List of directories to be searched for these runtime files:
7419          filetype.lua	filetypes |new-filetype|
7420          autoload/	automatically loaded scripts |autoload-functions|
7421          colors/	color scheme files |:colorscheme|
7422          compiler/	compiler files |:compiler|
7423          doc/		documentation |write-local-help|
7424          ftplugin/	filetype plugins |write-filetype-plugin|
7425          indent/	indent scripts |indent-expression|
7426          keymap/	key mapping files |mbyte-keymap|
7427          lang/		menu translations |:menutrans|
7428          lsp/		LSP client configurations |lsp-config|
7429          lua/		|Lua| plugins
7430          menu.vim	GUI menus |menu.vim|
7431          pack/		packages |:packadd|
7432          parser/	|treesitter| syntax parsers
7433          plugin/	plugin scripts |write-plugin|
7434          queries/	|treesitter| queries
7435          rplugin/	|remote-plugin| scripts
7436          spell/	spell checking files |spell|
7437          syntax/	syntax files |mysyntaxfile|
7438          tutor/	tutorial files |:Tutor|
7439
7440        And any other file searched for with the |:runtime| command.
7441
7442        Defaults are setup to search these locations:
7443        1. Your home directory, for personal preferences.
7444           Given by `stdpath("config")`.  |$XDG_CONFIG_HOME|
7445        2. Directories which must contain configuration files according to
7446           |xdg| ($XDG_CONFIG_DIRS, defaults to /etc/xdg).  This also contains
7447           preferences from system administrator.
7448        3. Data home directory, for plugins installed by user.
7449           Given by `stdpath("data")/site`.  |$XDG_DATA_HOME|
7450        4. nvim/site subdirectories for each directory in $XDG_DATA_DIRS.
7451           This is for plugins which were installed by system administrator,
7452           but are not part of the Nvim distribution. XDG_DATA_DIRS defaults
7453           to /usr/local/share/:/usr/share/, so system administrators are
7454           expected to install site plugins to /usr/share/nvim/site.
7455        5. $VIMRUNTIME, for files distributed with Nvim.
7456        						*after-directory*
7457        6, 7, 8, 9. In after/ subdirectories of 1, 2, 3 and 4, with reverse
7458           ordering.  This is for preferences to overrule or add to the
7459           distributed defaults or system-wide settings (rarely needed).
7460
7461        						*packages-runtimepath*
7462        "start" packages will also be searched (|runtime-search-path|) for
7463        runtime files after these, though such packages are not explicitly
7464        reported in &runtimepath. But "opt" packages are explicitly added to
7465        &runtimepath by |:packadd|.
7466
7467        Note that, unlike 'path', no wildcards like "**" are allowed.  Normal
7468        wildcards are allowed, but can significantly slow down searching for
7469        runtime files.  For speed, use as few items as possible and avoid
7470        wildcards.
7471        See |:runtime|.
7472        Example: >vim
7473        	set runtimepath=~/vimruntime,/mygroup/vim,$VIMRUNTIME
7474        <	This will use the directory "~/vimruntime" first (containing your
7475        personal Nvim runtime files), then "/mygroup/vim", and finally
7476        "$VIMRUNTIME" (the default runtime files).
7477        You can put a directory before $VIMRUNTIME to find files which replace
7478        distributed runtime files.  You can put a directory after $VIMRUNTIME
7479        to find files which add to distributed runtime files.
7480
7481        With |--clean| the home directory entries are not included.
7482        Environment variables are expanded |:set_env|.
7483      ]=],
7484      expand = 'nodefault',
7485      full_name = 'runtimepath',
7486      list = 'onecomma',
7487      scope = { 'global' },
7488      secure = true,
7489      short_desc = N_('list of directories used for runtime files'),
7490      tags = { 'vimfiles' },
7491      type = 'string',
7492      varname = 'p_rtp',
7493    },
7494    {
7495      abbreviation = 'scr',
7496      defaults = {
7497        if_true = 0,
7498        doc = 'half the window height',
7499      },
7500      desc = [=[
7501        Number of lines to scroll with CTRL-U and CTRL-D commands.  Will be
7502        set to half the number of lines in the window when the window size
7503        changes.  This may happen when enabling the |status-line| or
7504        'tabline' option after setting the 'scroll' option.
7505        If you give a count to the CTRL-U or CTRL-D command it will
7506        be used as the new value for 'scroll'.  Reset to half the window
7507        height with ":set scroll=0".
7508      ]=],
7509      full_name = 'scroll',
7510      no_mkrc = true,
7511      scope = { 'win' },
7512      short_desc = N_('lines to scroll with CTRL-U and CTRL-D'),
7513      type = 'number',
7514    },
7515    {
7516      abbreviation = 'scbk',
7517      cb = 'did_set_scrollback',
7518      defaults = {
7519        if_true = -1,
7520        doc = '10000',
7521      },
7522      desc = [=[
7523        Maximum number of lines kept beyond the visible screen. Lines at the
7524        top are deleted if new lines exceed this limit.
7525        Minimum is 1, maximum is 1000000.
7526        Only in |terminal| and |prompt-buffer| buffers.
7527
7528        Note: Lines that are not visible and kept in terminal scrollback are not
7529        reflown when the terminal buffer is resized horizontally.
7530      ]=],
7531      full_name = 'scrollback',
7532      redraw = { 'current_buffer' },
7533      scope = { 'buf' },
7534      short_desc = N_('lines to scroll with CTRL-U and CTRL-D'),
7535      type = 'number',
7536      varname = 'p_scbk',
7537    },
7538    {
7539      abbreviation = 'scb',
7540      cb = 'did_set_scrollbind',
7541      defaults = false,
7542      desc = [=[
7543        Enables synchronized scrolling (in all windows with this option set).
7544        Useful for comparing two versions of a file, see 'diff'.
7545        Behavior is controlled by 'scrollopt'. See |scroll-binding|.
7546
7547        This option is (usually) reset when splitting a window to edit another
7548        file: ":split | edit file" results in two windows with scroll-binding,
7549        but ":split file" does not.
7550
7551        Note: Consider calling |:syncbind| on |WinResized|, |WinEnter| events
7552        (scoped to relevant buffers).
7553      ]=],
7554      full_name = 'scrollbind',
7555      scope = { 'win' },
7556      short_desc = N_('scroll in window as other windows scroll'),
7557      type = 'boolean',
7558    },
7559    {
7560      abbreviation = 'sj',
7561      defaults = 1,
7562      desc = [=[
7563        Minimal number of lines to scroll when the cursor gets off the
7564        screen (e.g., with "j").  Not used for scroll commands (e.g., CTRL-E,
7565        CTRL-D).  Useful if your terminal scrolls very slowly.
7566        When set to a negative number from -1 to -100 this is used as the
7567        percentage of the window height.  Thus -50 scrolls half the window
7568        height.
7569      ]=],
7570      full_name = 'scrolljump',
7571      scope = { 'global' },
7572      short_desc = N_('minimum number of lines to scroll'),
7573      type = 'number',
7574      varname = 'p_sj',
7575    },
7576    {
7577      abbreviation = 'so',
7578      defaults = 0,
7579      desc = [=[
7580        Minimal number of screen lines to keep above and below the cursor.
7581        This will make some context visible around where you are working.  If
7582        you set it to a very large value (999) the cursor line will always be
7583        in the middle of the window (except at the start or end of the file,
7584        see 'scrolloffpad', or when long lines wrap).
7585        After using the local value, go back the global value with one of
7586        these two: >vim
7587        	setlocal scrolloff<
7588        	setlocal scrolloff=-1
7589        <	For scrolling horizontally see 'sidescrolloff'.
7590      ]=],
7591      full_name = 'scrolloff',
7592      scope = { 'global', 'win' },
7593      short_desc = N_('minimum nr. of lines above and below cursor'),
7594      type = 'number',
7595      varname = 'p_so',
7596    },
7597    {
7598      abbreviation = 'sop',
7599      defaults = 0,
7600      desc = [=[
7601        When 'scrolloff' and 'scrolloffpad' are greater than zero, allow
7602        the cursor to remain centered when at the end of the file.
7603        Normally, 'scrolloff' will not keep the cursor centered at the
7604        end of the file.
7605
7606        A value of 0 disables this feature.  Any value above 0 enables it.
7607        For a window-local value, -1 means to use the global value.
7608        Values below -1 are invalid.
7609
7610        Example: >vim
7611        	:set scrolloff=99 scrolloffpad=1
7612        <
7613
7614        After using the local value, go back the global value with one of
7615        these two: >vim
7616        	setlocal scrolloffpad<
7617        	setlocal scrolloffpad=-1
7618        <
7619      ]=],
7620      full_name = 'scrolloffpad',
7621      scope = { 'global', 'win' },
7622      short_desc = N_('vertically center cursor even at end of file'),
7623      type = 'number',
7624      varname = 'p_sop',
7625    },
7626    {
7627      abbreviation = 'sbo',
7628      validation_cb = 'validate_str_generic',
7629      defaults = 'ver,jump',
7630      schema = {
7631        set = { 'ver', 'hor', 'jump' },
7632      },
7633      deny_duplicates = true,
7634      desc = [=[
7635        This is a comma-separated list of words that specifies how
7636        'scrollbind' windows should behave.  'sbo' stands for ScrollBind
7637        Options.
7638        The following words are available:
7639            ver		Bind vertical scrolling for 'scrollbind' windows
7640            hor		Bind horizontal scrolling for 'scrollbind' windows
7641            jump	Applies to the offset between two windows for vertical
7642        		scrolling.  This offset is the difference in the first
7643        		displayed line of the bound windows.  When moving
7644        		around in a window, another 'scrollbind' window may
7645        		reach a position before the start or after the end of
7646        		the buffer.  The offset is not changed though, when
7647        		moving back the 'scrollbind' window will try to scroll
7648        		to the desired position when possible.
7649        		When now making that window the current one, two
7650        		things can be done with the relative offset:
7651        		1. When "jump" is not included, the relative offset is
7652        		   adjusted for the scroll position in the new current
7653        		   window.  When going back to the other window, the
7654        		   new relative offset will be used.
7655        		2. When "jump" is included, the other windows are
7656        		   scrolled to keep the same relative offset.  When
7657        		   going back to the other window, it still uses the
7658        		   same relative offset.
7659        Also see |scroll-binding|.
7660        When 'diff' mode is active there always is vertical scroll binding,
7661        even when "ver" isn't there.
7662      ]=],
7663      full_name = 'scrollopt',
7664      list = 'onecomma',
7665      scope = { 'global' },
7666      short_desc = N_("how 'scrollbind' should behave"),
7667      type = 'string',
7668      varname = 'p_sbo',
7669    },
7670    {
7671      abbreviation = 'sect',
7672      defaults = 'SHNHH HUnhsh',
7673      desc = [=[
7674        Specifies the nroff macros that separate sections.  These are pairs of
7675        two letters (See |object-motions|).  The default makes a section start
7676        at the nroff macros ".SH", ".NH", ".H", ".HU", ".nh" and ".sh".
7677      ]=],
7678      full_name = 'sections',
7679      scope = { 'global' },
7680      short_desc = N_('nroff macros that separate sections'),
7681      type = 'string',
7682      varname = 'p_sections',
7683    },
7684    {
7685      defaults = false,
7686      full_name = 'secure',
7687      scope = { 'global' },
7688      secure = true,
7689      short_desc = N_('Deprecated'),
7690      type = 'boolean',
7691      varname = 'p_secure',
7692    },
7693    {
7694      abbreviation = 'sel',
7695      cb = 'did_set_selection',
7696      validation_cb = 'validate_str_generic',
7697      defaults = 'inclusive',
7698      schema = {
7699        enum = { 'inclusive', 'exclusive', 'old' },
7700      },
7701      desc = [=[
7702        This option defines the behavior of the selection.  It is only used
7703        in Visual and Select mode.
7704        Possible values:
7705           value	past line     inclusive ~
7706           old		   no		yes
7707           inclusive	   yes		yes
7708           exclusive	   yes		no
7709        "past line" means that the cursor is allowed to be positioned one
7710        character past the line.
7711        "inclusive" means that the last character of the selection is included
7712        in an operation.  For example, when "x" is used to delete the
7713        selection.
7714        When "old" is used and 'virtualedit' allows the cursor to move past
7715        the end of line the line break still isn't included.
7716        When "exclusive" is used, cursor position in visual mode will be
7717        adjusted for inclusive motions |inclusive-motion-selection-exclusive|.
7718
7719        Note:
7720        - When "exclusive" is used and selecting from the end backwards, you
7721          cannot include the last character of a line, when starting in Normal
7722          mode and 'virtualedit' empty.
7723        - when "exclusive" is used with a single character visual selection,
7724          Vim will behave as if the 'selection' is inclusive (in other words,
7725          you cannot visually select an empty region).
7726      ]=],
7727      full_name = 'selection',
7728      scope = { 'global' },
7729      short_desc = N_('what type of selection to use'),
7730      type = 'string',
7731      varname = 'p_sel',
7732    },
7733    {
7734      abbreviation = 'slm',
7735      validation_cb = 'validate_str_generic',
7736      defaults = '',
7737      schema = {
7738        set = { 'mouse', 'key', 'cmd' },
7739      },
7740      deny_duplicates = true,
7741      desc = [=[
7742        This is a comma-separated list of words, which specifies when to start
7743        Select mode instead of Visual mode, when a selection is started.
7744        Possible values:
7745           mouse	when using the mouse
7746           key		when using shifted special keys
7747           cmd		when using "v", "V" or CTRL-V
7748        See |Select-mode|.
7749      ]=],
7750      full_name = 'selectmode',
7751      list = 'onecomma',
7752      scope = { 'global' },
7753      short_desc = N_('when to use Select mode instead of Visual mode'),
7754      type = 'string',
7755      varname = 'p_slm',
7756    },
7757    {
7758      abbreviation = 'ssop',
7759      validation_cb = 'validate_sessionoptions',
7760      defaults = 'blank,buffers,curdir,folds,help,tabpages,winsize,terminal',
7761      -- Also used for 'viewoptions'.
7762      schema = {
7763        flags = {
7764          'buffers',
7765          'winpos',
7766          'resize',
7767          'winsize',
7768          'localoptions',
7769          'options',
7770          'help',
7771          'blank',
7772          'globals',
7773          'slash',
7774          'unix',
7775          'sesdir',
7776          'curdir',
7777          'folds',
7778          'cursor',
7779          'tabpages',
7780          'terminal',
7781          'skiprtp',
7782        },
7783      },
7784      deny_duplicates = true,
7785      desc = [=[
7786        Changes the effect of the |:mksession| command.  It is a comma-
7787        separated list of words.  Each word enables saving and restoring
7788        something:
7789           word		save and restore ~
7790           blank	empty windows
7791           buffers	hidden and unloaded buffers, not just those in windows
7792           curdir	the current directory
7793           folds	manually created folds, opened/closed folds and local
7794        		fold options
7795           globals	global variables that start with an uppercase letter
7796        		and contain at least one lowercase letter.  Only
7797        		String and Number types are stored.
7798           help		the help window
7799           localoptions	options and mappings local to a window or buffer (not
7800        		global values for local options)
7801           options	all options and mappings (also global values for local
7802        		options), except Lua functions |option-value-function|.
7803           skiprtp	exclude 'runtimepath' and 'packpath' from the options
7804           resize	size of the Vim window: 'lines' and 'columns'
7805           sesdir	the directory in which the session file is located
7806        		will become the current directory (useful with
7807        		projects accessed over a network from different
7808        		systems)
7809           tabpages	all tabpages; without this only the current tabpage
7810        		is restored, so that you can make a session for each
7811        		tabpage separately
7812           terminal	include terminal windows where the command can be
7813        		restored
7814           winpos	position of the whole Vim window
7815           winsize	window sizes
7816           slash	|deprecated| Always enabled. Uses "/" in filenames.
7817           unix		|deprecated| Always enabled. Uses "\n" line endings.
7818
7819        Don't include both "curdir" and "sesdir". When neither is included
7820        filenames are stored as absolute paths.
7821        If you leave out "options" many things won't work well after restoring
7822        the session.
7823      ]=],
7824      full_name = 'sessionoptions',
7825      list = 'onecomma',
7826      scope = { 'global' },
7827      short_desc = N_('options for |:mksession|'),
7828      type = 'string',
7829      varname = 'p_ssop',
7830      flags_varname = 'ssop_flags',
7831    },
7832    {
7833      abbreviation = 'sd',
7834      alias = { 'vi', 'viminfo' },
7835      validation_cb = 'validate_shada',
7836      defaults = "!,'100,<50,s10,h,r/tmp/,r/private/",
7837      deny_duplicates = true,
7838      desc = [=[
7839        When non-empty, the shada file is read upon startup and written
7840        when exiting Vim (see |shada-file|).  The string should be a comma-
7841        separated list of parameters, each consisting of a single character
7842        identifying the particular parameter, followed by a number or string
7843        which specifies the value of that parameter.  If a particular
7844        character is left out, then the default value is used for that
7845        parameter.  The following is a list of the identifying characters and
7846        the effect of their value.
7847        CHAR	VALUE	~
7848        						*shada-!*
7849        !	When included, save and restore global variables that start
7850        	with an uppercase letter, and don't contain a lowercase
7851        	letter.  Thus "KEEPTHIS and "K_L_M" are stored, but "KeepThis"
7852        	and "_K_L_M" are not.  Nested List and Dict items may not be
7853        	read back correctly, you end up with an empty item.
7854        						*shada-quote*
7855        "	Maximum number of lines saved for each register.  Old name of
7856        	the '<' item, with the disadvantage that you need to put a
7857        	backslash before the ", otherwise it will be recognized as the
7858        	start of a comment!
7859        						*shada-%*
7860        %	When included, save and restore the buffer list.  If Vim is
7861        	started with a file name argument, the buffer list is not
7862        	restored.  If Vim is started without a file name argument, the
7863        	buffer list is restored from the shada file.  Quickfix
7864        	('buftype'), unlisted ('buflisted'), unnamed and buffers on
7865        	removable media (|shada-r|) are not saved.
7866        	When followed by a number, the number specifies the maximum
7867        	number of buffers that are stored.  Without a number all
7868        	buffers are stored.
7869        						*shada-'*
7870        '	Maximum number of previously edited files for which the marks
7871        	are remembered.  This parameter must always be included when
7872        	'shada' is non-empty.
7873        	If non-zero, then the |jumplist| and the |changelist| are also
7874        	stored in the shada file.
7875        						*shada-/*
7876        /	Maximum number of items in the search pattern history to be
7877        	saved.  If non-zero, then the previous search and substitute
7878        	patterns are also saved.  When not included, the value of
7879        	'history' is used.
7880        						*shada-:*
7881        :	Maximum number of items in the command-line history to be
7882        	saved.  When not included, the value of 'history' is used.
7883        						*shada-<*
7884        \<	Maximum number of lines saved for each register.  If zero then
7885        	registers are not saved.  When not included, all lines are
7886        	saved.  '"' is the old name for this item.
7887        	Also see the 's' item below: limit specified in KiB.
7888        						*shada-@*
7889        @	Maximum number of items in the input-line history to be
7890        	saved.  When not included, the value of 'history' is used.
7891        						*shada-c*
7892        c	Dummy option, kept for compatibility reasons.  Has no actual
7893        	effect: ShaDa always uses UTF-8 and 'encoding' value is fixed
7894        	to UTF-8 as well.
7895        						*shada-f*
7896        f	Whether file marks need to be stored.  If zero, file marks ('0
7897        	to '9, 'A to 'Z) are not stored.  When not present or when
7898        	non-zero, they are all stored.  '0 is used for the current
7899        	cursor position (when exiting or when doing |:wshada|).
7900        						*shada-h*
7901        h	Disable the effect of 'hlsearch' when loading the shada
7902        	file.  When not included, it depends on whether ":nohlsearch"
7903        	has been used since the last search command.
7904        						*shada-n*
7905        n	Name of the shada file.  The name must immediately follow
7906        	the 'n'.  Must be at the end of the option!  If the
7907        	'shadafile' option is set, that file name overrides the one
7908        	given here with 'shada'.  Environment variables are
7909        	expanded when opening the file, not when setting the option.
7910        						*shada-r*
7911        r	Removable media.  The argument is a string (up to the next
7912        	',').  This parameter can be given several times.  Each
7913        	specifies the start of a path for which no marks will be
7914        	stored.  This is to avoid removable media.  For Windows you
7915        	could use "ra:,rb:".  You can also use it for temp files,
7916        	e.g., for Unix: "r/tmp".  Case is ignored.
7917        						*shada-s*
7918        s	Maximum size of an item contents in KiB.  If zero then nothing
7919        	is saved.  Unlike Vim this applies to all items, except for
7920        	the buffer list and header.  Full item size is off by three
7921        	unsigned integers: with `s10` maximum item size may be 1 byte
7922        	(type: 7-bit integer) + 9 bytes (timestamp: up to 64-bit
7923        	integer) + 3 bytes (item size: up to 16-bit integer because
7924        	2^8 < 10240 < 2^16) + 10240 bytes (requested maximum item
7925        	contents size) = 10253 bytes.
7926
7927        Example: >vim
7928            set shada='50,<1000,s100,:0,n~/nvim/shada
7929        <
7930        '50		Marks will be remembered for the last 50 files you
7931        		edited.
7932        <1000		Contents of registers (up to 1000 lines each) will be
7933        		remembered.
7934        s100		Items with contents occupying more then 100 KiB are
7935        		skipped.
7936        :0		Command-line history will not be saved.
7937        n~/nvim/shada	The name of the file to use is "~/nvim/shada".
7938        no /		Since '/' is not specified, the default will be used,
7939        		that is, save all of the search history, and also the
7940        		previous search and substitute patterns.
7941        no %		The buffer list will not be saved nor read back.
7942        no h		'hlsearch' highlighting will be restored.
7943
7944        When setting 'shada' from an empty value you can use |:rshada| to
7945        load the contents of the file, this is not done automatically.
7946      ]=],
7947      full_name = 'shada',
7948      list = 'onecomma',
7949      scope = { 'global' },
7950      secure = true,
7951      short_desc = N_('use .shada file upon startup and exiting'),
7952      tags = { 'E526', 'E527', 'E528' },
7953      type = 'string',
7954      varname = 'p_shada',
7955    },
7956    {
7957      abbreviation = 'sdf',
7958      alias = { 'vif', 'viminfofile' },
7959      defaults = '',
7960      deny_duplicates = true,
7961      desc = [=[
7962        When non-empty, overrides the file name used for |shada| (viminfo).
7963        When equal to "NONE" no shada file will be read or written.
7964        This option can be set with the |-i| command line flag.  The |--clean|
7965        command line flag sets it to "NONE".
7966        Environment variables are expanded |:set_env|.
7967      ]=],
7968      expand = true,
7969      full_name = 'shadafile',
7970      list = 'onecomma',
7971      scope = { 'global' },
7972      secure = true,
7973      short_desc = N_('overrides the filename used for shada'),
7974      type = 'string',
7975      varname = 'p_shadafile',
7976    },
7977    {
7978      abbreviation = 'sh',
7979      defaults = {
7980        condition = 'MSWIN',
7981        if_false = 'sh',
7982        if_true = 'cmd.exe',
7983        doc = '$SHELL or "sh", Win32: "cmd.exe"',
7984        meta = 'sh',
7985      },
7986      desc = [=[
7987        Name of the shell to use for ! and :! commands.  When changing the
7988        value also check these options: 'shellpipe', 'shellslash'
7989        'shellredir', 'shellquote', 'shellxquote' and 'shellcmdflag'.
7990        It is allowed to give an argument to the command, e.g.  "csh -f".
7991        See |option-backslash| about including spaces and backslashes.
7992        Environment variables are expanded |:set_env|.
7993
7994        If the name of the shell contains a space, you need to enclose it in
7995        quotes.  Example with quotes: >vim
7996        	set shell=\"c:\program\ files\unix\sh.exe\"\ -f
7997        <	Note the backslash before each quote (to avoid starting a comment) and
7998        each space (to avoid ending the option value), so better use |:let-&|
7999        like this: >vim
8000        	let &shell='"C:\Program Files\unix\sh.exe" -f'
8001        <	Also note that the "-f" is not inside the quotes, because it is not
8002        part of the command name.
8003        						*shell-unquoting*
8004        Rules regarding quotes:
8005        1. Option is split on space and tab characters that are not inside
8006           quotes: "abc def" runs shell named "abc" with additional argument
8007           "def", '"abc def"' runs shell named "abc def" with no additional
8008           arguments (here and below: additional means “additional to
8009           'shellcmdflag'”).
8010        2. Quotes in option may be present in any position and any number:
8011           '"abc"', '"a"bc', 'a"b"c', 'ab"c"' and '"a"b"c"' are all equivalent
8012           to just "abc".
8013        3. Inside quotes backslash preceding backslash means one backslash.
8014           Backslash preceding quote means one quote. Backslash preceding
8015           anything else means backslash and next character literally:
8016           '"a\\b"' is the same as "a\b", '"a\\"b"' runs shell named literally
8017           'a"b', '"a\b"' is the same as "a\b" again.
8018        4. Outside of quotes backslash always means itself, it cannot be used
8019           to escape quote: 'a\"b"' is the same as "a\b".
8020        Note that such processing is done after |:set| did its own round of
8021        unescaping, so to keep yourself sane use |:let-&| like shown above.
8022        						*shell-powershell*
8023        To use PowerShell: >vim
8024           set noshelltemp
8025           let &shell = 'powershell'
8026           let &shellcmdflag = '-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command '
8027           let &shellcmdflag .= '[Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.UTF8Encoding]::new();'
8028           let &shellcmdflag .= '$PSDefaultParameterValues[''Out-File:Encoding'']=''utf8'';'
8029           let &shellpipe  = '> %s 2>&1'
8030           set shellquote= shellxquote=
8031        <
8032        						*shell-pwsh*
8033        To use pwsh, use the above settings with `let &shell = 'pwsh'`, and
8034        add: >vim
8035           let &shellcmdflag .= '$PSStyle.OutputRendering = ''PlainText'';'
8036           " Workaround (may not be needed in future version of pwsh):
8037           let $__SuppressAnsiEscapeSequences = 1
8038        <
8039      ]=],
8040      expand = true,
8041      full_name = 'shell',
8042      scope = { 'global' },
8043      secure = true,
8044      short_desc = N_('name of shell to use for external commands'),
8045      tags = { 'E91' },
8046      type = 'string',
8047      varname = 'p_sh',
8048    },
8049    {
8050      abbreviation = 'shcf',
8051      defaults = {
8052        if_true = '-c',
8053        doc = [["-c"; Windows, when 'shell'
8054               contains "cmd" somewhere: "/s /c"]],
8055      },
8056      desc = [=[
8057        Flag passed to the shell to execute "!" and ":!" commands; e.g.,
8058        `bash.exe -c ls` or `cmd.exe /s /c "dir"`.  For MS-Windows, the
8059        default is set according to the value of 'shell', to reduce the need
8060        to set this option by the user.
8061        On Unix it can have more than one flag.  Each white space separated
8062        part is passed as an argument to the shell command.
8063        See |option-backslash| about including spaces and backslashes.
8064        See |shell-unquoting| which talks about separating this option into
8065        multiple arguments.
8066      ]=],
8067      full_name = 'shellcmdflag',
8068      scope = { 'global' },
8069      secure = true,
8070      short_desc = N_('flag to shell to execute one command'),
8071      type = 'string',
8072      varname = 'p_shcf',
8073    },
8074    {
8075      abbreviation = 'sp',
8076      validation_cb = 'validate_shellpipe_redir',
8077      defaults = {
8078        condition = 'MSWIN',
8079        if_false = '| tee',
8080        if_true = '2>&1| tee',
8081        doc = '">", "| tee", "|& tee" or "2>&1| tee"',
8082      },
8083      desc = [=[
8084        String to be used to put the output of the ":make" command in the
8085        error file.  See also |:make_makeprg|.  See |option-backslash| about
8086        including spaces and backslashes.
8087        The name of the temporary file can be represented by "%s" if necessary
8088        (the file name is appended automatically if no %s appears in the value
8089        of this option).
8090        For MS-Windows the default is "2>&1| tee".  The stdout and stderr are
8091        saved in a file and echoed to the screen.
8092        For Unix the default is "| tee".  The stdout of the compiler is saved
8093        in a file and echoed to the screen.  If the 'shell' option contains
8094        "csh" (e.g. "tcsh") after initializations, the default becomes
8095        "|& tee".  Otherwise, if it contains "sh" (e.g. "bash", "zsh"), the
8096        default becomes "2>&1| tee".  This means that stderr is also included.
8097        Before using the 'shell' option a path is removed, thus "/bin/sh" uses
8098        "sh".
8099        The initialization of this option is done after reading the vimrc
8100        and the other initializations, so that when the 'shell' option is set
8101        there, the 'shellpipe' option changes automatically, unless it was
8102        explicitly set before.
8103        When 'shellpipe' is set to an empty string, no redirection of the
8104        ":make" output will be done.  This is useful if you use a 'makeprg'
8105        that writes to 'makeef' by itself.  If you want no piping, but do
8106        want to include the 'makeef', set 'shellpipe' to a single space.
8107        Don't forget to precede the space with a backslash: ":set sp=\ ".
8108        In the future pipes may be used for filtering and this option will
8109        become obsolete (at least for Unix).
8110        Note: When using a pipe like "| tee", you'll lose the exit code of the
8111        shell command.  This might be configurable by your shell, look for
8112        the pipefail option (for bash and zsh, use ":set -o pipefail").
8113        Only a single "%s" value is allowed.
8114      ]=],
8115      full_name = 'shellpipe',
8116      scope = { 'global' },
8117      secure = true,
8118      short_desc = N_('string to put output of ":make" in error file'),
8119      type = 'string',
8120      varname = 'p_sp',
8121    },
8122    {
8123      abbreviation = 'shq',
8124      defaults = {
8125        if_true = '',
8126        doc = [[""; Windows, when 'shell'
8127               contains "sh" somewhere: "\""]],
8128      },
8129      desc = [=[
8130        Quoting character(s), put around the command passed to the shell, for
8131        the "!" and ":!" commands.  The redirection is kept outside of the
8132        quoting.  See 'shellxquote' to include the redirection.  It's
8133        probably not useful to set both options.
8134        This is an empty string by default.  Only known to be useful for
8135        third-party shells on Windows systems, such as the MKS Korn Shell
8136        or bash, where it should be "\"".  The default is adjusted according
8137        the value of 'shell', to reduce the need to set this option by the
8138        user.
8139      ]=],
8140      full_name = 'shellquote',
8141      scope = { 'global' },
8142      secure = true,
8143      short_desc = N_('quote character(s) for around shell command'),
8144      type = 'string',
8145      varname = 'p_shq',
8146    },
8147    {
8148      abbreviation = 'srr',
8149      validation_cb = 'validate_shellpipe_redir',
8150      defaults = {
8151        condition = 'MSWIN',
8152        if_false = '>',
8153        if_true = '>%s 2>&1',
8154        doc = '">", ">&" or ">%s 2>&1"',
8155      },
8156      desc = [=[
8157        String to be used to put the output of a filter command in a temporary
8158        file.  See also |:!|.  See |option-backslash| about including spaces
8159        and backslashes.
8160        The name of the temporary file can be represented by "%s" if necessary
8161        (the file name is appended automatically if no %s appears in the value
8162        of this option).
8163        The default is ">".  For Unix, if the 'shell' option contains "csh"
8164        (e.g. "tcsh") during initializations, the default becomes ">&".
8165        Otherwise, if it contains "sh" (e.g. "bash", "zsh"), the default
8166        becomes ">%s 2>&1". This means that stderr is also included.  For
8167        Win32, the Unix checks are done and additionally "cmd" is checked
8168        for, which makes the default ">%s 2>&1".
8169        Also, the same names with ".exe" appended are checked for.
8170        The initialization of this option is done after reading the vimrc
8171        and the other initializations, so that when the 'shell' option is set
8172        there, the 'shellredir' option changes automatically unless it was
8173        explicitly set before.
8174        In the future pipes may be used for filtering and this option will
8175        become obsolete (at least for Unix).
8176        							*E1577*
8177        Only a single "%s" item is allowed in the option value.
8178      ]=],
8179      full_name = 'shellredir',
8180      scope = { 'global' },
8181      secure = true,
8182      short_desc = N_('string to put output of filter in a temp file'),
8183      type = 'string',
8184      varname = 'p_srr',
8185    },
8186    {
8187      abbreviation = 'ssl',
8188      defaults = {
8189        condition = 'MSWIN',
8190        if_true = false,
8191        if_false = true,
8192        doc = [[on; Windows: off, except when 'shell'
8193               contains "sh" somewhere]],
8194      },
8195      desc = [=[
8196        		only modifiable in MS-Windows
8197        When set, a forward slash is used when expanding file names.  This is
8198        useful when a Unix-like shell is used instead of cmd.exe.  Backward
8199        slashes can still be typed, but they are changed to forward slashes by
8200        Vim.
8201        Note that setting or resetting this option has no effect for some
8202        existing file names, thus this option needs to be set before opening
8203        any file for best results.  This might change in the future.
8204        'shellslash' only works when a backslash can be used as a path
8205        separator.  To test if this is so use: >vim
8206        	if exists('+shellslash')
8207        <	Also see 'completeslash'.
8208      ]=],
8209      enable_if = 'BACKSLASH_IN_FILENAME',
8210      full_name = 'shellslash',
8211      scope = { 'global' },
8212      short_desc = N_('use forward slash for shell file names'),
8213      type = 'boolean',
8214      varname = 'p_ssl',
8215    },
8216    {
8217      abbreviation = 'stmp',
8218      defaults = false,
8219      desc = [=[
8220        When on, use temp files for shell commands.  When off use a pipe.
8221        When using a pipe is not possible temp files are used anyway.
8222        The advantage of using a pipe is that nobody can read the temp file
8223        and the 'shell' command does not need to support redirection.
8224        The advantage of using a temp file is that the file type and encoding
8225        can be detected.
8226        The |FilterReadPre|, |FilterReadPost| and |FilterWritePre|,
8227        |FilterWritePost| autocommands event are not triggered when
8228        'shelltemp' is off.
8229        |system()| does not respect this option, it always uses pipes.
8230      ]=],
8231      full_name = 'shelltemp',
8232      scope = { 'global' },
8233      short_desc = N_('whether to use a temp file for shell commands'),
8234      type = 'boolean',
8235      varname = 'p_stmp',
8236    },
8237    {
8238      abbreviation = 'sxe',
8239      defaults = '',
8240      desc = [=[
8241        When 'shellxquote' is set to "(" then the characters listed in this
8242        option will be escaped with a '^' character.  This makes it possible
8243        to execute most external commands with cmd.exe.
8244      ]=],
8245      full_name = 'shellxescape',
8246      scope = { 'global' },
8247      secure = true,
8248      short_desc = N_("characters to escape when 'shellxquote' is ("),
8249      type = 'string',
8250      varname = 'p_sxe',
8251    },
8252    {
8253      abbreviation = 'sxq',
8254      defaults = {
8255        if_true = '',
8256        doc = [[""; Windows, when 'shell'
8257               contains "cmd" somewhere: "\""]],
8258      },
8259      desc = [=[
8260        Quoting character(s), put around the command passed to the shell, for
8261        the "!" and ":!" commands.  Includes the redirection.  See
8262        'shellquote' to exclude the redirection.  It's probably not useful
8263        to set both options.
8264        When the value is '(' then ')' is appended.  When the value is '"('
8265        then ')"' is appended.
8266        When the value is '(' then also see 'shellxescape'.
8267      ]=],
8268      full_name = 'shellxquote',
8269      scope = { 'global' },
8270      secure = true,
8271      short_desc = N_("like 'shellquote', but include redirection"),
8272      type = 'string',
8273      varname = 'p_sxq',
8274    },
8275    {
8276      abbreviation = 'sr',
8277      defaults = false,
8278      desc = [=[
8279        Round indent to multiple of 'shiftwidth'.  Applies to > and <
8280        commands.  CTRL-T and CTRL-D in Insert mode always round the indent to
8281        a multiple of 'shiftwidth' (this is Vi compatible).
8282      ]=],
8283      full_name = 'shiftround',
8284      scope = { 'global' },
8285      short_desc = N_('round indent to multiple of shiftwidth'),
8286      type = 'boolean',
8287      varname = 'p_sr',
8288    },
8289    {
8290      abbreviation = 'sw',
8291      cb = 'did_set_shiftwidth_tabstop',
8292      defaults = 8,
8293      desc = [=[
8294        Number of columns that make up one level of (auto)indentation.  Used
8295        by 'cindent', |<<|, |>>|, etc.
8296        If set to 0, Vim uses the current 'tabstop' value.  Use |shiftwidth()|
8297        to obtain the effective value in scripts.
8298      ]=],
8299      full_name = 'shiftwidth',
8300      scope = { 'buf' },
8301      short_desc = N_('number of spaces to use for (auto)indent step'),
8302      type = 'number',
8303      varname = 'p_sw',
8304    },
8305    {
8306      abbreviation = 'shm',
8307      validation_cb = 'validate_shortmess',
8308      defaults = 'ltToOCF',
8309      desc = [=[
8310        Controls display of file messages (e.g. CTRL-G) and various other
8311        messages.
8312
8313        It is a list of flags:
8314         flag	meaning when present	~
8315          l	use "999L, 888B" instead of "999 lines, 888 bytes"	*shm-l*
8316          m	use "[+]" instead of "[Modified]"			*shm-m*
8317          r	use "[RO]" instead of "[readonly]"			*shm-r*
8318          w	use "[w]" instead of "written" for file write message	*shm-w*
8319        	and "[a]" instead of "appended" for ':w >> file' command
8320          a	all of the above abbreviations				*shm-a*
8321
8322          o	overwrite message for writing a file with subsequent	*shm-o*
8323        	message for reading a file (useful for ":wn" or when
8324        	'autowrite' on)
8325          O	message for reading a file overwrites any previous	*shm-O*
8326        	message;  also for quickfix message (e.g., ":cn")
8327          s	don't give "search hit BOTTOM, continuing at TOP" or	*shm-s*
8328        	"search hit TOP, continuing at BOTTOM" messages; when using
8329        	the search count do not show "W" before the count message
8330        	(see |shm-S| below)
8331          t	truncate file message at the start if it is too long	*shm-t*
8332        	to fit on the command-line, "<" will appear in the left most
8333        	column; ignored in Ex mode
8334          T	truncate other messages in the middle if they are too	*shm-T*
8335        	long to fit on the command line; "..." will appear in the
8336        	middle; ignored in Ex mode
8337          W	don't give "written" or "[w]" when writing a file	*shm-W*
8338          A	don't give the "ATTENTION" message when an existing	*shm-A*
8339        	swap file is found
8340          I	don't give the intro message when starting Vim,		*shm-I*
8341        	see |:intro|
8342          c	don't give |ins-completion-menu| messages; for		*shm-c*
8343        	example, "-- XXX completion (YYY)", "match 1 of 2", "The only
8344        	match", "Pattern not found", "Back at original", etc.
8345          C	don't give messages while scanning for ins-completion	*shm-C*
8346        	items, for instance "scanning tags"
8347          q	do not show "recording @a" when recording a macro	*shm-q*
8348          F	don't give the file info when editing a file, like	*shm-F*
8349        	`:silent` was used for the command; note that this also
8350        	affects messages from 'autoread' reloading
8351          S	do not show search count message when searching, e.g.	*shm-S*
8352        	"[1/5]".  When the "S" flag is not present (e.g. search count
8353        	is shown), the "search hit BOTTOM, continuing at TOP" and
8354        	"search hit TOP, continuing at BOTTOM" messages are only
8355        	indicated by a "W" (Mnemonic: Wrapped) letter before the
8356        	search count statistics.  The maximum limit can be set with
8357        	the 'maxsearchcount' option, see also |searchcount()|
8358        	function.
8359          u	don't give undo and redo messages like			*shm-u*
8360        	"1 line less; before #1  1 second ago", "Already at oldest
8361        	change" or "Already at newest change"
8362
8363        This gives you the opportunity to avoid that a change between buffers
8364        requires you to hit <Enter>, but still gives as useful a message as
8365        possible for the space available.  To get the whole message that you
8366        would have got with 'shm' empty, use ":file!"
8367        Useful values:
8368            shm=	No abbreviation of message.
8369            shm=a	Abbreviation, but no loss of information.
8370            shm=at	Abbreviation, and truncate message when necessary.
8371      ]=],
8372      expand_cb = 'expand_set_shortmess',
8373      -- Generates kShm* flag constants; SHM_ALL_ABBREVIATIONS stays hand-defined in option_vars.h.
8374      schema = {
8375        flagchars = {
8376          ro = 'r', -- Readonly.
8377          mod = 'm', -- Modified.
8378          lines = 'l', -- "L" instead of "lines".
8379          wri = 'w', -- "[w]" instead of "written".
8380          abbreviations = 'a', -- Use abbreviations from SHM_ALL_ABBREVIATIONS.
8381          write = 'W', -- Don't use "written" at all.
8382          trunc = 't', -- Truncate file messages.
8383          truncall = 'T', -- Truncate all messages.
8384          over = 'o', -- Overwrite file messages.
8385          overall = 'O', -- Overwrite more messages.
8386          search = 's', -- No search hit bottom messages.
8387          attention = 'A', -- No ATTENTION messages.
8388          intro = 'I', -- Intro messages.
8389          completionmenu = 'c', -- Completion menu messages.
8390          completionscan = 'C', -- Completion scanning messages.
8391          recording = 'q', -- No recording message.
8392          fileinfo = 'F', -- No file info messages.
8393          searchcount = 'S', -- No search stats: '[1/10]'.
8394          undo = 'u', -- No undo messages.
8395        },
8396      },
8397      full_name = 'shortmess',
8398      list = 'flags',
8399      scope = { 'global' },
8400      short_desc = N_('list of flags, reduce length of messages'),
8401      tags = { 'E1336' },
8402      type = 'string',
8403      varname = 'p_shm',
8404    },
8405    {
8406      abbreviation = 'sbr',
8407      validation_cb = 'validate_showbreak',
8408      defaults = '',
8409      desc = [=[
8410        String to put at the start of lines that have been wrapped.  Useful
8411        values are "> " or "+++ ": >vim
8412        	let &showbreak = "> "
8413        	let &showbreak = '+++ '
8414        <	Only printable single-cell characters are allowed, excluding <Tab> and
8415        comma (in a future version the comma might be used to separate the
8416        part that is shown at the end and at the start of a line).
8417        The |hl-NonText| highlight group determines the highlighting.
8418        Note that tabs after the showbreak will be displayed differently.
8419        If you want the 'showbreak' to appear in between line numbers, add the
8420        "n" flag to 'cpoptions'.
8421        A window-local value overrules a global value.  If the global value is
8422        set and you want no value in the current window use NONE: >vim
8423        	setlocal showbreak=NONE
8424        <
8425      ]=],
8426      full_name = 'showbreak',
8427      redraw = { 'all_windows' },
8428      scope = { 'global', 'win' },
8429      short_desc = N_('string to use at the start of wrapped lines'),
8430      tags = { 'E595' },
8431      type = 'string',
8432      varname = 'p_sbr',
8433    },
8434    {
8435      abbreviation = 'sc',
8436      defaults = true,
8437      desc = [=[
8438        Show (partial) command in the last line of the screen.  Set this
8439        option off if your terminal is slow.
8440        In Visual mode the size of the selected area is shown:
8441        - When selecting characters within a line, the number of characters.
8442          If the number of bytes is different it is also displayed: "2-6"
8443          means two characters and six bytes.
8444        - When selecting more than one line, the number of lines.
8445        - When selecting a block, the size in screen characters:
8446          {lines}x{columns}.
8447        This information can be displayed in an alternative location using the
8448        'showcmdloc' option, useful when 'cmdheight' is 0.
8449      ]=],
8450      full_name = 'showcmd',
8451      scope = { 'global' },
8452      short_desc = N_('show (partial) command in status line'),
8453      type = 'boolean',
8454      varname = 'p_sc',
8455    },
8456    {
8457      abbreviation = 'sloc',
8458      cb = 'did_set_showcmdloc',
8459      validation_cb = 'validate_str_generic',
8460      defaults = 'last',
8461      schema = {
8462        enum = { 'last', 'statusline', 'tabline' },
8463      },
8464      desc = [=[
8465        This option can be used to display the (partially) entered command in
8466        another location.  Possible values are:
8467          last		Last line of the screen (default).
8468          statusline	Status line of the current window.
8469          tabline	First line of the screen if 'showtabline' is enabled.
8470        Setting this option to "statusline" or "tabline" means that these will
8471        be redrawn whenever the command changes, which can be on every key
8472        pressed.
8473        The %S 'statusline' item can be used in 'statusline' or 'tabline' to
8474        place the text.  Without a custom 'statusline' or 'tabline' it will be
8475        displayed in a convenient location.
8476      ]=],
8477      full_name = 'showcmdloc',
8478      scope = { 'global' },
8479      short_desc = N_('change location of partial command'),
8480      type = 'string',
8481      varname = 'p_sloc',
8482    },
8483    {
8484      abbreviation = 'sft',
8485      defaults = false,
8486      desc = [=[
8487        When completing a word in insert mode (see |ins-completion|) from the
8488        tags file, show both the tag name and a tidied-up form of the search
8489        pattern (if there is one) as possible matches.  Thus, if you have
8490        matched a C function, you can see a template for what arguments are
8491        required (coding style permitting).
8492        Note that this doesn't work well together with having "longest" in
8493        'completeopt', because the completion from the search pattern may not
8494        match the typed text.
8495      ]=],
8496      full_name = 'showfulltag',
8497      scope = { 'global' },
8498      short_desc = N_('show full tag pattern when completing tag'),
8499      type = 'boolean',
8500      varname = 'p_sft',
8501    },
8502    {
8503      abbreviation = 'sm',
8504      defaults = false,
8505      desc = [=[
8506        When a bracket is inserted, briefly jump to the matching one.  The
8507        jump is only done if the match can be seen on the screen.  The time to
8508        show the match can be set with 'matchtime'.
8509        A Beep is given if there is no match (no matter if the match can be
8510        seen or not).
8511        When the 'm' flag is not included in 'cpoptions', typing a character
8512        will immediately move the cursor back to where it belongs.
8513        See the "sm" field in 'guicursor' for setting the cursor shape and
8514        blinking when showing the match.
8515        The 'matchpairs' option can be used to specify the characters to show
8516        matches for.  'rightleft' and 'revins' are used to look for opposite
8517        matches.
8518        Also see the matchparen plugin for highlighting the match when moving
8519        around |pi_paren.txt|.
8520        Note: Use of the short form is rated PG.
8521      ]=],
8522      full_name = 'showmatch',
8523      scope = { 'global' },
8524      short_desc = N_('briefly jump to matching bracket if insert one'),
8525      type = 'boolean',
8526      varname = 'p_sm',
8527    },
8528    {
8529      abbreviation = 'smd',
8530      defaults = true,
8531      desc = [=[
8532        If in Insert, Replace or Visual mode put a message on the last line.
8533        The |hl-ModeMsg| highlight group determines the highlighting.
8534        The option has no effect when 'cmdheight' is zero.
8535      ]=],
8536      full_name = 'showmode',
8537      scope = { 'global' },
8538      short_desc = N_('message on status line to show current mode'),
8539      type = 'boolean',
8540      varname = 'p_smd',
8541    },
8542    {
8543      abbreviation = 'stal',
8544      cb = 'did_set_showtabline',
8545      defaults = 1,
8546      desc = [=[
8547        Specifies when the |tabpage| labels will be displayed:
8548        	0: never
8549        	1: only if there are at least two tabpages
8550        	2: always
8551      ]=],
8552      full_name = 'showtabline',
8553      redraw = { 'all_windows', 'ui_option' },
8554      scope = { 'global' },
8555      short_desc = N_('tells when the tabpages line is displayed'),
8556      type = 'number',
8557      varname = 'p_stal',
8558    },
8559    {
8560      abbreviation = 'ss',
8561      defaults = 1,
8562      desc = [=[
8563        The minimal number of columns to scroll horizontally.  Used only when
8564        the 'wrap' option is off and the cursor is moved off of the screen.
8565        When it is zero the cursor will be put in the middle of the screen.
8566        When using a slow terminal set it to a large number or 0.  Not used
8567        for "zh" and "zl" commands.
8568      ]=],
8569      full_name = 'sidescroll',
8570      scope = { 'global' },
8571      short_desc = N_('minimum number of columns to scroll horizontal'),
8572      type = 'number',
8573      varname = 'p_ss',
8574    },
8575    {
8576      abbreviation = 'siso',
8577      defaults = 0,
8578      desc = [=[
8579        The minimal number of screen columns to keep to the left and to the
8580        right of the cursor if 'nowrap' is set.  Setting this option to a
8581        value greater than 0 while having 'sidescroll' also at a non-zero
8582        value makes some context visible in the line you are scrolling in
8583        horizontally (except at beginning of the line).  Setting this option
8584        to a large value (like 999) has the effect of keeping the cursor
8585        horizontally centered in the window, as long as one does not come too
8586        close to the beginning of the line.
8587        After using the local value, go back the global value with one of
8588        these two: >vim
8589        	setlocal sidescrolloff<
8590        	setlocal sidescrolloff=-1
8591        <
8592        Example: Try this together with 'sidescroll' and 'listchars' as in the
8593        	 following example to never allow the cursor to move onto the
8594        	 "extends" character: >vim
8595
8596        	 set nowrap sidescroll=1 listchars=extends:>,precedes:<
8597        	 set sidescrolloff=1
8598        <
8599      ]=],
8600      full_name = 'sidescrolloff',
8601      scope = { 'global', 'win' },
8602      short_desc = N_('min. nr. of columns to left and right of cursor'),
8603      type = 'number',
8604      varname = 'p_siso',
8605    },
8606    {
8607      abbreviation = 'scl',
8608      cb = 'did_set_signcolumn',
8609      validation_cb = 'validate_signcolumn',
8610      defaults = 'auto',
8611      schema = {
8612        enum = {
8613          'yes',
8614          'no',
8615          'auto',
8616          'auto:1',
8617          'auto:2',
8618          'auto:3',
8619          'auto:4',
8620          'auto:5',
8621          'auto:6',
8622          'auto:7',
8623          'auto:8',
8624          'auto:9',
8625          'yes:1',
8626          'yes:2',
8627          'yes:3',
8628          'yes:4',
8629          'yes:5',
8630          'yes:6',
8631          'yes:7',
8632          'yes:8',
8633          'yes:9',
8634          'number',
8635        },
8636      },
8637      desc = [=[
8638        When and how to draw the signcolumn.  Valid values are:
8639           "auto"	only when there is a sign to display
8640           "auto:[1-9]" resize to accommodate multiple signs up to the
8641        		given number (maximum 9), e.g. "auto:4"
8642           "auto:[1-8]-[2-9]"
8643        		resize to accommodate multiple signs up to the
8644        		given maximum number (maximum 9) while keeping
8645        		at least the given minimum (maximum 8) fixed
8646        		space. The minimum number should always be less
8647        		than the maximum number, e.g. "auto:2-5"
8648           "no"		never
8649           "yes"	always
8650           "yes:[1-9]"  always, with fixed space for signs up to the given
8651        		number (maximum 9), e.g. "yes:3"
8652           "number"	display signs in the 'number' column.  If the number
8653        		column is not present, then behaves like "auto".
8654      ]=],
8655      full_name = 'signcolumn',
8656      redraw = { 'current_window' },
8657      scope = { 'win' },
8658      short_desc = N_('when to display the sign column'),
8659      type = 'string',
8660    },
8661    {
8662      abbreviation = 'scs',
8663      defaults = false,
8664      desc = [=[
8665        Override the 'ignorecase' option if the search pattern contains upper
8666        case characters.  Only used when the search pattern is typed and
8667        'ignorecase' option is on.  Used for the commands "/", "?", "n", "N",
8668        ":g" and ":s" and when filtering matches for the completion menu
8669        |compl-states|.
8670        Not used for "*", "#", "gd", tag search, etc.  After "*" and "#" you
8671        can make 'smartcase' used by doing a "/" command, recalling the search
8672        pattern from history and hitting <Enter>.
8673      ]=],
8674      full_name = 'smartcase',
8675      scope = { 'global' },
8676      short_desc = N_('no ignore case when pattern has uppercase'),
8677      type = 'boolean',
8678      varname = 'p_scs',
8679    },
8680    {
8681      abbreviation = 'si',
8682      defaults = false,
8683      desc = [=[
8684        Do smart autoindenting when starting a new line.  Works for C-like
8685        programs, but can also be used for other languages.  'cindent' does
8686        something like this, works better in most cases, but is more strict,
8687        see |C-indenting|.  When 'cindent' is on or 'indentexpr' is set,
8688        setting 'si' has no effect.  'indentexpr' is a more advanced
8689        alternative.
8690        Normally 'autoindent' should also be on when using 'smartindent'.
8691        An indent is automatically inserted:
8692        - After a line ending in "{".
8693        - After a line starting with a keyword from 'cinwords'.
8694        - Before a line starting with "}" (only with the "O" command).
8695        When typing '}' as the first character in a new line, that line is
8696        given the same indent as the matching "{".
8697        When typing '#' as the first character in a new line, the indent for
8698        that line is removed, the '#' is put in the first column.  The indent
8699        is restored for the next line.  If you don't want this, use this
8700        mapping: ":inoremap # X^H#", where ^H is entered with CTRL-V CTRL-H.
8701        When using the ">>" command, lines starting with '#' are not shifted
8702        right.
8703      ]=],
8704      full_name = 'smartindent',
8705      scope = { 'buf' },
8706      short_desc = N_('smart autoindenting for C programs'),
8707      type = 'boolean',
8708      varname = 'p_si',
8709    },
8710    {
8711      abbreviation = 'sta',
8712      defaults = true,
8713      desc = [=[
8714        When enabled, the <Tab> key will indent by 'shiftwidth' if the cursor
8715        is in leading whitespace.  The <BS> key has the opposite effect.
8716        In leading whitespace, this has the same effect as setting
8717        'softtabstop' to the value of 'shiftwidth'.
8718        NOTE: in most cases, using 'softtabstop' is a better option.  Have a
8719        look at section |30.5| of the user guide for detailed
8720        explanations on how Vim works with tabs and spaces.
8721      ]=],
8722      full_name = 'smarttab',
8723      scope = { 'global' },
8724      short_desc = N_("use 'shiftwidth' when inserting <Tab>"),
8725      type = 'boolean',
8726      varname = 'p_sta',
8727    },
8728    {
8729      abbreviation = 'sms',
8730      cb = 'did_set_smoothscroll',
8731      defaults = false,
8732      desc = [=[
8733        Scrolling works with screen lines.  When 'wrap' is set and the first
8734        line in the window wraps part of it may not be visible, as if it is
8735        above the window.  "<<<" is displayed at the start of the first line,
8736        highlighted with |hl-NonText|.
8737        You may also want to add "lastline" to the 'display' option to show as
8738        much of the last line as possible.
8739        NOTE: partly implemented, doesn't work yet for |gj| and |gk|.
8740      ]=],
8741      full_name = 'smoothscroll',
8742      redraw = { 'current_window' },
8743      scope = { 'win' },
8744      short_desc = N_("scroll by screen lines when 'wrap' is set"),
8745      type = 'boolean',
8746    },
8747    {
8748      abbreviation = 'sts',
8749      defaults = 0,
8750      desc = [=[
8751        Create soft tab stops, separated by 'softtabstop' number of columns.
8752        In Insert mode, pressing the <Tab> key will move the cursor to the
8753        next soft tab stop, instead of inserting a literal tab.  <BS> behaves
8754        similarly in reverse.  Vim inserts a minimal mix of tab and space
8755        characters to produce the visual effect.
8756
8757        This setting does not affect the display of existing tab characters.
8758
8759        A value of 0 disables this behaviour.  A negative value makes Vim use
8760        'shiftwidth'.  If you plan to use 'sts' and 'shiftwidth' with
8761        different values, you might consider setting 'smarttab'.
8762
8763        The 'L' flag in 'cpoptions' alters tab behavior when 'list' is
8764        enabled.  See also |ins-expandtab| and user manual section |30.5| for
8765        in-depth explanations.
8766
8767        The value of 'softtabstop' will be ignored if 'varsofttabstop' is set
8768        to anything other than an empty string.
8769      ]=],
8770      full_name = 'softtabstop',
8771      scope = { 'buf' },
8772      short_desc = N_('number of spaces that <Tab> uses while editing'),
8773      type = 'number',
8774      varname = 'p_sts',
8775    },
8776    {
8777      cb = 'did_set_spell',
8778      defaults = false,
8779      desc = [=[
8780        When on spell checking will be done.  See |spell|.
8781        The languages are specified with 'spelllang'.
8782      ]=],
8783      full_name = 'spell',
8784      redraw = { 'current_window', 'highlight_only' },
8785      scope = { 'win' },
8786      short_desc = N_('spell checking'),
8787      type = 'boolean',
8788    },
8789    {
8790      abbreviation = 'spc',
8791      cb = 'did_set_spellcapcheck',
8792      defaults = '[.?!]\\_[\\])\'"\\t ]\\+',
8793      desc = [=[
8794        Pattern to locate the end of a sentence.  The following word will be
8795        checked to start with a capital letter.  If not then it is highlighted
8796        with SpellCap |hl-SpellCap| (unless the word is also badly spelled).
8797        When this check is not wanted make this option empty.
8798        Only used when 'spell' is set.
8799        Be careful with special characters, see |option-backslash| about
8800        including spaces and backslashes.
8801        To set this option automatically depending on the language, see
8802        |set-spc-auto|.
8803      ]=],
8804      full_name = 'spellcapcheck',
8805      redraw = { 'current_buffer', 'highlight_only' },
8806      scope = { 'buf' },
8807      short_desc = N_('pattern to locate end of a sentence'),
8808      type = 'string',
8809      varname = 'p_spc',
8810    },
8811    {
8812      abbreviation = 'spf',
8813      cb = 'did_set_spellfile',
8814      validation_cb = 'validate_spellfile',
8815      defaults = '',
8816      deny_duplicates = true,
8817      desc = [=[
8818        Name of the word list file where words are added for the |zg| and |zw|
8819        commands.  It must end in ".{encoding}.add".  You need to include the
8820        path, otherwise the file is placed in the current directory.
8821        The path may include characters from 'isfname', ' ', ',', '@' and ':'.
8822        							*E765*
8823        It may also be a comma-separated list of names.  A count before the
8824        |zg| and |zw| commands can be used to access each.  This allows using
8825        a personal word list file and a project word list file.
8826        When a word is added while this option is empty Nvim will use
8827        (and auto-create) `stdpath('data')/site/spell/`. For the file name the
8828        first language name that appears in 'spelllang' is used, ignoring the
8829        region.
8830        The resulting ".spl" file will be used for spell checking, it does not
8831        have to appear in 'spelllang'.
8832        Normally one file is used for all regions, but you can add the region
8833        name if you want to.  However, it will then only be used when
8834        'spellfile' is set to it, for entries in 'spelllang' only files
8835        without region name will be found.
8836        Environment variables are expanded |:set_env|.
8837      ]=],
8838      expand = true,
8839      full_name = 'spellfile',
8840      list = 'onecomma',
8841      scope = { 'buf' },
8842      secure = true,
8843      short_desc = N_('files where |zg| and |zw| store words'),
8844      type = 'string',
8845      varname = 'p_spf',
8846    },
8847    {
8848      abbreviation = 'spl',
8849      cb = 'did_set_spelllang',
8850      validation_cb = 'validate_spelllang',
8851      defaults = 'en',
8852      deny_duplicates = true,
8853      desc = [=[
8854        A comma-separated list of word list names.  When the 'spell' option is
8855        on spellchecking will be done for these languages.  Example: >vim
8856        	set spelllang=en_us,nl,medical
8857        <	This means US English, Dutch and medical words are recognized.  Words
8858        that are not recognized will be highlighted.
8859        The word list name must consist of alphanumeric characters, a dash or
8860        an underscore.  It should not include a comma or dot.  Using a dash is
8861        recommended to separate the two letter language name from a
8862        specification.  Thus "en-rare" is used for rare English words.
8863        A region name must come last and have the form "_xx", where "xx" is
8864        the two-letter, lower case region name.  You can use more than one
8865        region by listing them: "en_us,en_ca" supports both US and Canadian
8866        English, but not words specific for Australia, New Zealand or Great
8867        Britain.  (Note: currently en_au and en_nz dictionaries are older than
8868        en_ca, en_gb and en_us).
8869        If the name "cjk" is included East Asian characters are excluded from
8870        spell checking.  This is useful when editing text that also has Asian
8871        words.
8872        Note that the "medical" dictionary does not exist, it is just an
8873        example of a longer name.
8874        						*E757*
8875        As a special case the name of a .spl file can be given as-is.  The
8876        first "_xx" in the name is removed and used as the region name
8877        (_xx is an underscore, two letters and followed by a non-letter).
8878        This is mainly for testing purposes.  You must make sure the correct
8879        encoding is used, Vim doesn't check it.
8880        How the related spell files are found is explained here: |spell-load|.
8881
8882        If the |package-spellfile| plugin is active and you use a language name
8883        for which Vim cannot find the .spl file in 'runtimepath' the plugin
8884        will ask you if you want to download the file.
8885
8886        After this option has been set successfully, Vim will source the files
8887        "spell/LANG.vim" in 'runtimepath'.  "LANG" is the value of 'spelllang'
8888        up to the first character that is not an ASCII letter or number and
8889        not a dash.  Also see |set-spc-auto|.
8890      ]=],
8891      expand = true,
8892      full_name = 'spelllang',
8893      list = 'onecomma',
8894      redraw = { 'current_buffer', 'highlight_only' },
8895      scope = { 'buf' },
8896      short_desc = N_('language(s) to do spell checking for'),
8897      type = 'string',
8898      varname = 'p_spl',
8899    },
8900    {
8901      abbreviation = 'spo',
8902      cb = 'did_set_spelloptions',
8903      validation_cb = 'validate_str_generic',
8904      defaults = '',
8905      schema = {
8906        flags = { 'camel', 'noplainbuffer' },
8907      },
8908      deny_duplicates = true,
8909      desc = [=[
8910        A comma-separated list of options for spell checking:
8911        camel		When a word is CamelCased, assume "Cased" is a
8912        		separate word: every upper-case character in a word
8913        		that comes after a lower case character indicates the
8914        		start of a new word.
8915        noplainbuffer	Only spellcheck a buffer when 'syntax' is enabled,
8916        		or when extmarks are set within the buffer. Only
8917        		designated regions of the buffer are spellchecked in
8918        		this case.
8919      ]=],
8920      full_name = 'spelloptions',
8921      list = 'onecomma',
8922      redraw = { 'current_buffer', 'highlight_only' },
8923      scope = { 'buf' },
8924      secure = true,
8925      type = 'string',
8926      varname = 'p_spo',
8927    },
8928    {
8929      abbreviation = 'sps',
8930      cb = 'did_set_spellsuggest',
8931      defaults = 'best',
8932      -- Keep this in sync with spell_check_sps().
8933      schema = {
8934        set = { 'best', 'fast', 'double', 'expr:', 'file:', 'timeout:' },
8935      },
8936      deny_duplicates = true,
8937      desc = [=[
8938        Methods used for spelling suggestions.  Both for the |z=| command and
8939        the |spellsuggest()| function.  This is a comma-separated list of
8940        items:
8941
8942        best		Internal method that works best for English.  Finds
8943        		changes like "fast" and uses a bit of sound-a-like
8944        		scoring to improve the ordering.
8945
8946        double		Internal method that uses two methods and mixes the
8947        		results.  The first method is "fast", the other method
8948        		computes how much the suggestion sounds like the bad
8949        		word.  That only works when the language specifies
8950        		sound folding.  Can be slow and doesn't always give
8951        		better results.
8952
8953        fast		Internal method that only checks for simple changes:
8954        		character inserts/deletes/swaps.  Works well for
8955        		simple typing mistakes.
8956
8957        {number}	The maximum number of suggestions listed for |z=|.
8958        		Not used for |spellsuggest()|.  The number of
8959        		suggestions is never more than the value of 'lines'
8960        		minus two.
8961
8962        timeout:{millisec}   Limit the time searching for suggestions to
8963        		{millisec} milliseconds.  Applies to the following
8964        		methods.  When omitted the limit is 5000.  When
8965        		negative there is no limit.
8966
8967        file:{filename} Read file {filename}, which must have two columns,
8968        		separated by a slash.  The first column contains the
8969        		bad word, the second column the suggested good word.
8970        		Example:
8971        			theribal/terrible ~
8972        		Use this for common mistakes that do not appear at the
8973        		top of the suggestion list with the internal methods.
8974        		Lines without a slash are ignored, use this for
8975        		comments.
8976        		The word in the second column must be correct,
8977        		otherwise it will not be used.  Add the word to an
8978        		".add" file if it is currently flagged as a spelling
8979        		mistake.
8980        		The file is used for all languages.
8981
8982        expr:{expr}	Evaluate expression {expr}.  Use a function to avoid
8983        		trouble with spaces.  Best is to call a function
8984        		without arguments, see |expr-option-function|.
8985        		|v:val| holds the badly spelled word.  The expression
8986        		must evaluate to a List of Lists, each with a
8987        		suggestion and a score.
8988        		Example:
8989        			[['the', 33], ['that', 44]] ~
8990        		Set 'verbose' and use |z=| to see the scores that the
8991        		internal methods use.  A lower score is better.
8992        		This may invoke |spellsuggest()| if you temporarily
8993        		set 'spellsuggest' to exclude the "expr:" part.
8994        		Errors are silently ignored, unless you set the
8995        		'verbose' option to a non-zero value.
8996
8997        Only one of "best", "double" or "fast" may be used.  The others may
8998        appear several times in any order.  Example: >vim
8999        	set sps=file:~/.config/nvim/sugg,best,expr:MySuggest()
9000        <	Environment variables are expanded |:set_env|.
9001      ]=],
9002      expand = true,
9003      full_name = 'spellsuggest',
9004      list = 'onecomma',
9005      scope = { 'global' },
9006      secure = true,
9007      short_desc = N_('method(s) used to suggest spelling corrections'),
9008      tags = { 'E5700' },
9009      type = 'string',
9010      varname = 'p_sps',
9011    },
9012    {
9013      abbreviation = 'sb',
9014      defaults = false,
9015      desc = [=[
9016        When on, splitting a window will put the new window below the current
9017        one. |:split|
9018      ]=],
9019      full_name = 'splitbelow',
9020      scope = { 'global' },
9021      short_desc = N_('new window from split is below the current one'),
9022      type = 'boolean',
9023      varname = 'p_sb',
9024    },
9025    {
9026      abbreviation = 'spk',
9027      cb = 'did_set_splitkeep',
9028      validation_cb = 'validate_str_generic',
9029      defaults = 'cursor',
9030      schema = {
9031        enum = { 'cursor', 'screen', 'topline' },
9032      },
9033      desc = [=[
9034        The value of this option determines the scroll behavior when opening,
9035        closing or resizing horizontal splits.
9036
9037        Possible values are:
9038          cursor	Keep the same relative cursor position.
9039          screen	Keep the text on the same screen line.
9040          topline	Keep the topline the same.
9041
9042        For the "screen" and "topline" values, the cursor position will be
9043        changed when necessary.  In this case, the jumplist will be populated
9044        with the previous cursor position.  For "screen", the text cannot
9045        always be kept on the same screen line when 'wrap' is enabled.
9046      ]=],
9047      full_name = 'splitkeep',
9048      scope = { 'global' },
9049      short_desc = N_('determines scroll behavior for split windows'),
9050      type = 'string',
9051      varname = 'p_spk',
9052    },
9053    {
9054      abbreviation = 'spr',
9055      defaults = false,
9056      desc = [=[
9057        When on, splitting a window will put the new window right of the
9058        current one. |:vsplit|
9059      ]=],
9060      full_name = 'splitright',
9061      scope = { 'global' },
9062      short_desc = N_('new window is put right of the current one'),
9063      type = 'boolean',
9064      varname = 'p_spr',
9065    },
9066    {
9067      abbreviation = 'sol',
9068      defaults = false,
9069      desc = [=[
9070        When "on" the commands listed below move the cursor to the first
9071        non-blank of the line.  When off the cursor is kept in the same column
9072        (if possible).  This applies to the commands:
9073        - CTRL-D, CTRL-U, CTRL-B, CTRL-F, "G", "H", "M", "L", "gg"
9074        - "d", "<<", "==" and ">>" with a linewise operator
9075          (|operator-resulting-pos|)
9076        - "%" with a count
9077        - buffer changing commands (CTRL-^, :bnext, :bNext, etc.)
9078        - Ex commands that only have a line number, e.g., ":25" or ":+".
9079        In case of buffer changing commands the cursor is placed at the column
9080        where it was the last time the buffer was edited.
9081      ]=],
9082      full_name = 'startofline',
9083      scope = { 'global' },
9084      short_desc = N_('commands move cursor to first non-blank in line'),
9085      type = 'boolean',
9086      varname = 'p_sol',
9087      vim = false,
9088    },
9089    {
9090      abbreviation = 'stc',
9091      cb = 'did_set_statuscolumn',
9092      validation_cb = 'validate_statustabline_rulerformat',
9093      defaults = '',
9094      desc = [=[
9095        When non-empty, this option determines the content of the area to the
9096        side of a window, normally containing the fold, sign and number columns.
9097        The format of this option is like that of 'statusline'.
9098
9099        Some of the items from the 'statusline' format are different for
9100        'statuscolumn':
9101
9102        %l	line number column for currently drawn line
9103        %s	sign column for currently drawn line
9104        %C	fold column for currently drawn line
9105
9106        The 'statuscolumn' width follows that of the default columns and
9107        adapts to the 'numberwidth', 'signcolumn' and 'foldcolumn' option values
9108        (regardless of whether the sign and fold items are present).
9109        Additionally, the 'statuscolumn' grows with the size of the evaluated
9110        format string, up to a point (following the maximum size of the default
9111        fold, sign and number columns). Shrinking only happens when the number
9112        of lines in a buffer changes, or the 'statuscolumn' option is set.
9113
9114        The |v:lnum|    variable holds the line number to be drawn.
9115        The |v:relnum|  variable holds the relative line number to be drawn.
9116        The |v:virtnum| variable is negative when drawing virtual lines, zero
9117        	      when drawing the actual buffer line, and positive when
9118        	      drawing the wrapped part of a buffer line.
9119
9120        When using |v:relnum|, keep in mind that cursor movement by itself will
9121        not cause the 'statuscolumn' to update unless 'relativenumber' is set.
9122
9123        Examples: >vim
9124        	" Line number with bar separator and click handlers:
9125        	set statuscolumn=%@SignCb@%s%=%T%@NumCb@%l│%T
9126
9127        	" Line numbers in hexadecimal for non wrapped part of lines:
9128        	let &stc='%=%{v:virtnum>0?"":printf("%x",v:lnum)} '
9129
9130        	" Human readable line numbers with thousands separator:
9131        	let &stc='%{substitute(v:lnum,"\\d\\zs\\ze\\'
9132        		   . '%(\\d\\d\\d\\)\\+$",",","g")}'
9133
9134        	" Both relative and absolute line numbers with different
9135        	" highlighting for odd and even relative numbers:
9136        	let &stc='%#NonText#%{&nu?v:lnum:""}' .
9137        	 '%=%{&rnu&&(v:lnum%2)?"\ ".v:relnum:""}' .
9138        	 '%#LineNr#%{&rnu&&!(v:lnum%2)?"\ ".v:relnum:""}'
9139
9140        <	WARNING: this expression is evaluated for each screen line so defining
9141        an expensive expression can negatively affect render performance.
9142      ]=],
9143      full_name = 'statuscolumn',
9144      redraw = { 'current_window' },
9145      scope = { 'win' },
9146      secure = true,
9147      short_desc = N_('custom format for the status column'),
9148      type = 'string',
9149    },
9150    {
9151      abbreviation = 'stl',
9152      cb = 'did_set_statusline',
9153      validation_cb = 'validate_statustabline_rulerformat',
9154      defaults = {
9155        if_true = table.concat({
9156          '%<', -- guards the default truncation from the left against a %< injected via rulerformat
9157          '%f',
9158          "%( %h%w%m%r%{ v:lua.require('vim._core.util').term_exitcode() }%)",
9159          '%= ',
9160          '%(%-10S %)',
9161          "%{ &busy > 0 ? '◐\226\128\175' : '' }", -- use non-breaking space to avoid fillchar
9162          "%(%{ luaeval('(package.loaded[''vim.ui''] and vim.api.nvim_get_current_win() == tonumber(vim.g.actual_curwin or -1) and vim.ui.progress_status()) or '''' ')} %)",
9163          "%{% luaeval('(package.loaded[''vim.diagnostic''] and next(vim.diagnostic.count(0)) and vim.diagnostic.status() .. '' '') or '''' ') %}",
9164          '%(%k %)',
9165          "%{% &ruler ? &rulerformat : '' %}",
9166        }),
9167        doc = 'is very long',
9168      },
9169      desc = [=[
9170        Sets the |status-line|.
9171
9172        Contains printf-style "%" items interspersed with normal text, where
9173        each item has the form: >
9174          %-0{minwid}.{maxwid}{item}
9175        <
9176        All fields except {item} are optional.  Use "%%" to show a literal "%"
9177        char.  Setting to empty (`:set statusline=`) sets the global value to
9178        the default.
9179
9180        						*stl-%!*
9181        When the option starts with "%!" then it is used as an expression,
9182        evaluated and the result is used as the option value.  Example: >vim
9183        	set statusline=%!MyStatusLine()
9184        <	The *g:statusline_winid* variable will be set to the |window-ID| of the
9185        window that the status line belongs to.
9186        The result can contain %{} items that will be evaluated too.
9187        Note that the "%!" expression is evaluated in the context of the
9188        current window and buffer, while %{} items are evaluated in the
9189        context of the window that the statusline belongs to.
9190
9191        When there is an error while evaluating the option it will be reset to
9192        its default value to avoid further errors.  Otherwise screen updating
9193        would loop.  When the result contains unprintable characters the
9194        result is unpredictable.
9195
9196        When 'ruler' is on, the default 'statusline' includes 'rulerformat'.
9197        See note below.
9198        Note that if 'statusline' is configured without including the ruler,
9199        the only effect of 'ruler' when this option is set (and 'laststatus'
9200        is 2 or 3) is controlling the output of |CTRL-G|.
9201
9202        field	    meaning ~
9203        -	    Left justify the item.  The default is right justified
9204        	    when minwid is larger than the length of the item.
9205        0	    Leading zeroes in numeric items.  Overridden by "-".
9206        minwid	    Minimum width of the item, padding as set by "-" & "0".
9207        	    Value must be 50 or less.
9208        maxwid	    Maximum width of the item.  Truncation occurs with a "<"
9209        	    on the left for text items.  Numeric items will be
9210        	    shifted down to maxwid-2 digits followed by ">"number
9211        	    where number is the amount of missing digits, much like
9212        	    an exponential notation.
9213        item	    A one letter code as described below.
9214
9215        Following is a description of the possible statusline items.  The
9216        second character in "item" is the type:
9217        	"N" for number
9218        	"S" for string
9219        	"F" for flags as described below
9220        	"-" not applicable
9221
9222        item  meaning ~
9223        f S   Path to the file in the buffer, as typed or relative to current
9224              directory.
9225        F S   Full path to the file in the buffer.
9226        t S   File name (tail) of file in the buffer.
9227        m F   Modified flag, text is "[+]"; "[-]" if 'modifiable' is off.
9228        M F   Modified flag, text is ",+" or ",-".
9229        r F   Readonly flag, text is "[RO]".
9230        R F   Readonly flag, text is ",RO".
9231        h F   Help buffer flag, text is "[help]".
9232        H F   Help buffer flag, text is ",HLP".
9233        w F   Preview window flag, text is "[Preview]".
9234        W F   Preview window flag, text is ",PRV".
9235        y F   Type of file in the buffer, e.g., "[vim]".  See 'filetype'.
9236        Y F   Type of file in the buffer, e.g., ",VIM".  See 'filetype'.
9237        q S   "[Quickfix List]", "[Location List]" or empty.
9238        k S   Value of "b:keymap_name" or 'keymap' when |:lmap| mappings are
9239              being used: "<keymap>"
9240        n N   Buffer number.
9241        b N   Value of character under cursor.
9242        B N   As above, in hexadecimal.
9243        o N   Byte number in file of byte under cursor, first byte is 1.
9244              Mnemonic: Offset from start of file (with one added)
9245        O N   As above, in hexadecimal.
9246        l N   Line number.
9247        L N   Number of lines in buffer.
9248        c N   Column number (byte index).
9249        v N   Virtual column number (screen column).
9250        V N   Virtual column number as -{num}.  Not displayed if equal to 'c'.
9251        p N   Percentage through file in lines as in |CTRL-G|.
9252        P S   Percentage through file of displayed window.  This is like the
9253              percentage described for 'ruler'.  Always 3 in length, unless
9254              translated.
9255        S S   'showcmd' content, see 'showcmdloc'.
9256        a S   Argument list status as in default title.  ({current} of {max})
9257              Empty if the argument file count is zero or one.
9258        { NF  Evaluate expression between "%{" and "}" and substitute result.
9259              Note that there is no "%" before the closing "}".  The
9260              expression cannot contain a "}" character, call a function to
9261              work around that.  See |stl-%{| below.  Use "%0{" to insert the
9262              result verbatim.
9263        `{%` -  This is almost same as "{" except the result of the expression is
9264              re-evaluated as a statusline format string.  Thus if the
9265              return value of expr contains "%" items they will get expanded.
9266              The expression can contain the "}" character, the end of
9267              expression is denoted by "%}".
9268              For example: >vim
9269        	func! Stl_filename() abort
9270        	    return "%t"
9271        	endfunc
9272        <	        `stl=%{Stl_filename()}`   results in `"%t"`
9273                `stl=%{%Stl_filename()%}` results in `"Name of current file"`
9274              The default status line uses this to include 'rulerformat', see
9275              note below.
9276        %} -  End of "{%" expression
9277        ( -   Start of item group.  Can be used for setting the width and
9278              alignment of a section.  Must be followed by %) somewhere.
9279        ) -   End of item group.  No width fields allowed.
9280        T N   For 'tabline': start of tabpage N label.  Use %T or %X to end
9281              the label.  Clicking this label with left mouse button switches
9282              to the specified tabpage, while clicking it with middle mouse
9283              button closes the specified tabpage.
9284        X N   For 'tabline': start of close tab N label.  Use %X or %T to end
9285              the label, e.g.: %3Xclose%X.  Use %999X for a "close current
9286              tab" label.  Clicking this label with left mouse button closes
9287              the specified tabpage.
9288        @ N   Start of execute function label. Use %X or %T to end the label,
9289              e.g.: %10@SwitchBuffer@foo.c%X.  Clicking this label runs the
9290              specified function: in the example when clicking once using left
9291              mouse button on "foo.c", a `SwitchBuffer(10, 1, 'l', '    ')`
9292              expression will be run.  The specified function receives the
9293              following arguments in order:
9294              1. minwid field value or zero if no N was specified
9295              2. number of mouse clicks to detect multiple clicks
9296              3. mouse button used: "l", "r" or "m" for left, right or middle
9297                 button respectively; one should not rely on third argument
9298                 being only "l", "r" or "m": any other non-empty string value
9299                 that contains only ASCII lower case letters may be expected
9300                 for other mouse buttons
9301              4. modifiers pressed: string which contains "s" if shift
9302                 modifier was pressed, "c" for control, "a" for alt and "m"
9303                 for meta; currently if modifier is not pressed string
9304                 contains space instead, but one should not rely on presence
9305                 of spaces or specific order of modifiers: use |stridx()| to
9306                 test whether some modifier is present; string is guaranteed
9307                 to contain only ASCII letters and spaces, one letter per
9308                 modifier; "?" modifier may also be present, but its presence
9309                 is a bug that denotes that new mouse button recognition was
9310                 added without modifying code that reacts on mouse clicks on
9311                 this label.
9312
9313              Use |getmousepos()|.winid in the specified function to get the
9314              corresponding |window-ID| of the clicked item.
9315        \< -   Where to truncate line if too long.  Default is at the first
9316              item.  Truncation markers within item groups apply to the
9317              truncation of that group until its maxwid is reached.
9318              In case of several competing truncation markers, the first wins.
9319              No width fields allowed.
9320        = -   Separation point between alignment sections.  Each section will
9321              be separated by an equal number of spaces.  With one %= what
9322              comes after it will be right-aligned.  With two %= there is a
9323              middle part, with white space left and right of it.
9324              Alignment sections within item groups will be separated until
9325              minwid of the group is reached.
9326              No width fields allowed.
9327        # -   Set highlight group.  The name must follow and then a # again.
9328              Thus use %#HLname# for highlight group HLname.  The same
9329              highlighting is used, also for the statusline of non-current
9330              windows.
9331        $ -   Same as `#`, except the `%$HLname$` group will inherit from
9332              preceding highlight attributes.
9333        * -   Set highlight group to User{N}, where {N} is taken from the
9334              minwid field, e.g. %1*.  Restore normal highlight with %* or
9335              %0*.  The difference between User{N} and StatusLine will be
9336              applied to StatusLineNC for the statusline of non-current
9337              windows.
9338              The number N must be between 1 and 9.  See |hl-User1..9|
9339        #( -  Start of a highlight scope.  The exact highlighting before the
9340              scope is reset at the end.  No width fields allowed.
9341        #) -  End of highlight scope.  No width fields allowed.
9342
9343        When displaying a flag, Vim removes the leading comma, if any, when
9344        that flag comes right after plaintext.  This will make a nice display
9345        when flags are used like in the examples below.
9346
9347        When all items in a group becomes an empty string (i.e. flags that are
9348        not set) and a minwid is not set for the group, the whole group will
9349        become empty.  This will make a group like the following disappear
9350        completely from the statusline when none of the flags are set. >vim
9351        	set statusline=...%(\ [%M%R%H]%)...
9352        <	Beware that an expression is evaluated each and every time the status
9353        line is displayed.
9354        			*stl-%{* *g:actual_curbuf* *g:actual_curwin*
9355        While evaluating %{} the current buffer and current window will be set
9356        temporarily to that of the window (and buffer) whose statusline is
9357        currently being drawn.  The expression will evaluate in this context.
9358        The variable "g:actual_curbuf" is set to the `bufnr()` number of the
9359        real current buffer and "g:actual_curwin" to the |window-ID| of the
9360        real current window.  These values are strings.
9361
9362        The 'statusline' option will be evaluated in the |sandbox| if set from
9363        a modeline, see |sandbox-option|.
9364        This option cannot be set in a modeline when 'modelineexpr' is off.
9365
9366        It is not allowed to change text or jump to another window while
9367        evaluating 'statusline' |textlock|.
9368
9369        If the statusline is not updated when you want it (e.g., after setting
9370        a variable that's used in an expression), you can force an update by
9371        using `:redrawstatus`.
9372
9373        A result of all digits is regarded a number for display purposes.
9374        Otherwise the result is taken as flag text and applied to the rules
9375        described above.
9376        							*stl-%0{*
9377        With %0{ neither applies: the result is inserted as a literal string.
9378
9379        Watch out for errors in expressions.  They may render Vim unusable!
9380        If you are stuck, hold down ':' or 'Q' to get a prompt, then quit and
9381        edit your vimrc or whatever with "vim --clean" to get it right.
9382
9383        Examples:
9384        A simple version of the standard status line with 'ruler' set >vim
9385          set statusline=%f\ %h%w%m%r%=\ %-14.(%l,%c%V%)\ %P
9386        <	Similar, but add ASCII value of char under the cursor (like "ga") >vim
9387          set statusline=%f%h%m%r%=\ %b\ 0x%B\ \ %l,%c%V\ %P
9388        <	Display byte count and byte value, modified flag in red. >vim
9389          set statusline=%f%=\ [%1*%M%*%n%R%H]\ %-19(%3l,%02c%03V%)%O'%02b'
9390          hi User1 term=inverse,bold cterm=inverse,bold ctermfg=red
9391        <	Display a ,GZ flag if a compressed file is loaded >vim
9392          set statusline=...%r%{VarExists('b:gzflag','\ [GZ]')}%h...
9393        <	In the |:autocmd|'s: >vim
9394          let b:gzflag = 1
9395        <	And: >vim
9396          unlet b:gzflag
9397        <	And define this function: >vim
9398          function VarExists(var, val)
9399              if exists(a:var) | return a:val | else | return '' | endif
9400          endfunction
9401        <
9402        Note: By default, the status line is truncated from the left, and the
9403        ruler from the right.  But the status line can include the ruler.
9404        To ensure that a top-level (i.e. not inside an item group) `%<` in
9405        'rulerformat' doesn't change the truncation of the status line,
9406        - 'statusline' can be prepended with an explicit `%<`, which otherwise
9407          would not be necessary. Example: >vim
9408            set statusline=%<%f%=\ %{%&rulerformat%}
9409        <	- Or the ruler can be wrapped in an item group, which also collapses
9410          any top-level `%=` in 'rulerformat' unless minwid is specified: >vim
9411            set statusline=%f%=\ %(%{%&rulerformat%}%)
9412        <
9413      ]=],
9414      full_name = 'statusline',
9415      modelineexpr = true,
9416      redraw = { 'statuslines' },
9417      scope = { 'global', 'win' },
9418      short_desc = N_('custom format for the status line'),
9419      tags = { 'E540', 'E542' },
9420      type = 'string',
9421      varname = 'p_stl',
9422    },
9423    {
9424      abbreviation = 'su',
9425      defaults = '.bak,~,.o,.h,.info,.swp,.obj',
9426      deny_duplicates = true,
9427      desc = [=[
9428        Files with these suffixes get a lower priority when multiple files
9429        match a wildcard.  See |suffixes|.  Commas can be used to separate the
9430        suffixes.  Spaces after the comma are ignored.  A dot is also seen as
9431        the start of a suffix.  To avoid a dot or comma being recognized as a
9432        separator, precede it with a backslash (see |option-backslash| about
9433        including spaces and backslashes).
9434        See 'wildignore' for completely ignoring files.
9435        The use of |:set+=| and |:set-=| is preferred when adding or removing
9436        suffixes from the list.  This avoids problems when a future version
9437        uses another default.
9438      ]=],
9439      full_name = 'suffixes',
9440      list = 'onecomma',
9441      scope = { 'global' },
9442      short_desc = N_('suffixes that are ignored with multiple match'),
9443      type = 'string',
9444      varname = 'p_su',
9445    },
9446    {
9447      abbreviation = 'sua',
9448      defaults = '',
9449      deny_duplicates = true,
9450      desc = [=[
9451        Comma-separated list of suffixes, which are used when searching for a
9452        file for the "gf", "[I", etc. commands.  Example: >vim
9453        	set suffixesadd=.java
9454        <
9455      ]=],
9456      full_name = 'suffixesadd',
9457      list = 'onecomma',
9458      scope = { 'buf' },
9459      short_desc = N_('suffixes added when searching for a file'),
9460      type = 'string',
9461      varname = 'p_sua',
9462    },
9463    {
9464      abbreviation = 'swf',
9465      cb = 'did_set_swapfile',
9466      defaults = true,
9467      desc = [=[
9468        Use a |swap-file| for the buffer (if 'updatecount' is non-zero). The
9469        'directory' option decides where swapfiles are stored.
9470
9471        To open a new buffer without creating a swapfile, use |:noswapfile|.
9472        To disable for an existing buffer, reset its 'swapfile' option.
9473        Careful:
9474        	- Recovery will be impossible!
9475        	- The entire file will be in memory.
9476
9477        When reset, the swapfile for the current buffer is immediately
9478        deleted.  When re-enabled (and 'updatecount' is non-zero), a swapfile
9479        is immediately created.
9480
9481        Used with 'bufhidden' and 'buftype' to specify |special-buffers|.
9482      ]=],
9483      full_name = 'swapfile',
9484      redraw = { 'statuslines' },
9485      scope = { 'buf' },
9486      short_desc = N_('whether to use a swapfile for a buffer'),
9487      type = 'boolean',
9488      varname = 'p_swf',
9489    },
9490    {
9491      abbreviation = 'swb',
9492      validation_cb = 'validate_str_generic',
9493      defaults = 'uselast',
9494      schema = {
9495        flags = { 'useopen', 'usetab', 'split', 'newtab', 'vsplit', 'uselast' },
9496      },
9497      deny_duplicates = true,
9498      desc = [=[
9499        This option controls the behavior when switching between buffers.
9500        This option is checked, when
9501        - jumping to errors with the |quickfix| commands (|:cc|, |:cn|, |:cp|,
9502          etc.).
9503        - jumping to a tag using the |:stag| command.
9504        - opening a file using the |CTRL-W_f| or |CTRL-W_F| command.
9505        - jumping to a buffer using a buffer split command (e.g.  |:sbuffer|,
9506          |:sbnext|, or |:sbrewind|).
9507        Possible values (comma-separated list):
9508           useopen	If included, jump to the first open window in the
9509        		current tabpage that contains the specified buffer
9510        		(if there is one).  Otherwise: Do not examine other
9511        		windows.
9512           usetab	Like "useopen", but also consider windows in other
9513        		tabpages.
9514           split	If included, split the current window before loading
9515        		a buffer for a |quickfix| command that display errors.
9516        		Otherwise: do not split, use current window (when used
9517        		in the quickfix window: the previously used window or
9518        		split if there is no other window).
9519           vsplit	Just like "split" but split vertically.
9520           newtab	Like "split", but open a new tabpage.  Overrules
9521        		"split" when both are present.
9522           uselast	If included, jump to the previously used window when
9523        		jumping to errors with |quickfix| commands.
9524        If a window has 'winfixbuf' enabled, 'switchbuf' is currently not
9525        applied to the split window.
9526      ]=],
9527      full_name = 'switchbuf',
9528      list = 'onecomma',
9529      scope = { 'global' },
9530      short_desc = N_('sets behavior when switching to another buffer'),
9531      type = 'string',
9532      varname = 'p_swb',
9533      flags_varname = 'swb_flags',
9534    },
9535    {
9536      abbreviation = 'smc',
9537      defaults = 3000,
9538      desc = [=[
9539        Maximum column in which to search for syntax items.  In long lines the
9540        text after this column is not highlighted and following lines may not
9541        be highlighted correctly, because the syntax state is cleared.
9542        This helps to avoid very slow redrawing for an XML file that is one
9543        long line.
9544        Set to zero to remove the limit.
9545      ]=],
9546      full_name = 'synmaxcol',
9547      redraw = { 'current_buffer' },
9548      scope = { 'buf' },
9549      short_desc = N_('maximum column to find syntax items'),
9550      type = 'number',
9551      varname = 'p_smc',
9552    },
9553    {
9554      abbreviation = 'syn',
9555      cb = 'did_set_filetype_or_syntax',
9556      validation_cb = 'validate_filetype',
9557      defaults = '',
9558      desc = [=[
9559        When this option is set, the syntax with this name is loaded, unless
9560        syntax highlighting has been switched off with ":syntax off".
9561        Otherwise this option does not always reflect the current syntax (the
9562        b:current_syntax variable does).
9563        This option is most useful in a modeline, for a file which syntax is
9564        not automatically recognized.  Example, in an IDL file: >c
9565        	/* vim: set syntax=idl : */
9566        <	When a dot appears in the value then this separates two filetype
9567        names.  Example: >c
9568        	/* vim: set syntax=c.doxygen : */
9569        <	This will use the "c" syntax first, then the "doxygen" syntax.
9570        Note that the second one must be prepared to be loaded as an addition,
9571        otherwise it will be skipped.  More than one dot may appear.
9572        To switch off syntax highlighting for the current file, use: >vim
9573        	set syntax=OFF
9574        <	To switch syntax highlighting on according to the current value of the
9575        'filetype' option: >vim
9576        	set syntax=ON
9577        <	What actually happens when setting the 'syntax' option is that the
9578        Syntax autocommand event is triggered with the value as argument.
9579        This option is not copied to another buffer, independent of the 's' or
9580        'S' flag in 'cpoptions'.
9581        Only alphanumeric characters, '.', '-' and '_' can be used.
9582      ]=],
9583      full_name = 'syntax',
9584      noglob = true,
9585      normal_fname_chars = true,
9586      scope = { 'buf' },
9587      short_desc = N_('syntax to be loaded for current buffer'),
9588      type = 'string',
9589      varname = 'p_syn',
9590    },
9591    {
9592      abbreviation = 'tcl',
9593      validation_cb = 'validate_str_generic',
9594      defaults = '',
9595      schema = {
9596        flags = { 'left', 'uselast' },
9597      },
9598      deny_duplicates = true,
9599      desc = [=[
9600        This option controls the behavior when closing tabpages (e.g., using
9601        |:tabclose|).  When empty Vim goes to the next (right) tabpage.
9602
9603        Possible values (comma-separated list):
9604           left		If included, go to the previous tabpage instead of
9605        		the next one.
9606           uselast	If included, go to the previously used tabpage if
9607        		possible.  This option takes precedence over the
9608        		others.
9609      ]=],
9610      full_name = 'tabclose',
9611      list = 'onecomma',
9612      scope = { 'global' },
9613      short_desc = N_('which tabpage to focus when closing a tab'),
9614      type = 'string',
9615      varname = 'p_tcl',
9616      flags_varname = 'tcl_flags',
9617    },
9618    {
9619      abbreviation = 'tal',
9620      cb = 'did_set_tabline',
9621      validation_cb = 'validate_statustabline_rulerformat',
9622      defaults = '',
9623      desc = [=[
9624        When non-empty, this option determines the content of the tabpages
9625        line at the top of the Vim window.  When empty Vim will use a default
9626        tabpages line.  See |setting-tabline| for more info.
9627
9628        The tabpages line only appears as specified with the 'showtabline'
9629        option and only when there is no GUI tab line.  When 'e' is in
9630        'guioptions' and the GUI supports a tab line 'guitablabel' is used
9631        instead.  Note that the two tabpages lines are very different.
9632
9633        The value is evaluated like with 'statusline'.  You can use
9634        |tabpagenr()|, |tabpagewinnr()| and |tabpagebuflist()| to figure out
9635        the text to be displayed.  Use "%1T" for the first label, "%2T" for
9636        the second one, etc.  Use "%X" items for closing labels.
9637
9638        When changing something that is used in 'tabline' that does not
9639        trigger it to be updated, use |:redrawtabline|.
9640        This option cannot be set in a modeline when 'modelineexpr' is off.
9641
9642        Keep in mind that only one of the tabpages is the current one, others
9643        are invisible and you can't jump to their windows.
9644      ]=],
9645      full_name = 'tabline',
9646      modelineexpr = true,
9647      redraw = { 'tabline' },
9648      scope = { 'global' },
9649      short_desc = N_('custom format for the console tabpages line'),
9650      type = 'string',
9651      varname = 'p_tal',
9652    },
9653    {
9654      abbreviation = 'tpm',
9655      defaults = 50,
9656      desc = [=[
9657        Maximum number of tabpages to be opened by the |-p| command line
9658        argument or the ":tab all" command. |tabpage|
9659      ]=],
9660      full_name = 'tabpagemax',
9661      scope = { 'global' },
9662      short_desc = N_('maximum number of tabpages for |-p| and "tab all"'),
9663      type = 'number',
9664      varname = 'p_tpm',
9665    },
9666    {
9667      abbreviation = 'ts',
9668      cb = 'did_set_shiftwidth_tabstop',
9669      defaults = 8,
9670      desc = [=[
9671        Defines the column multiple used to display the Horizontal Tab
9672        character (ASCII 9); a Horizontal Tab always advances to the next tab
9673        stop.
9674        The value must be at least 1 and at most 9999.
9675        If 'vartabstop' is set, this option is ignored.
9676        Leave it at 8 unless you have a strong reason (see usr |30.5|).
9677      ]=],
9678      full_name = 'tabstop',
9679      redraw = { 'current_buffer' },
9680      scope = { 'buf' },
9681      short_desc = N_('number of spaces that <Tab> in file uses'),
9682      type = 'number',
9683      varname = 'p_ts',
9684    },
9685    {
9686      abbreviation = 'tbs',
9687      defaults = true,
9688      desc = [=[
9689        When searching for a tag (e.g., for the |:ta| command), Vim can either
9690        use a binary search or a linear search in a tags file.  Binary
9691        searching makes searching for a tag a LOT faster, but a linear search
9692        will find more tags if the tags file wasn't properly sorted.
9693        Vim normally assumes that your tags files are sorted, or indicate that
9694        they are not sorted.  Only when this is not the case does the
9695        'tagbsearch' option need to be switched off.
9696
9697        When 'tagbsearch' is on, binary searching is first used in the tags
9698        files.  In certain situations, Vim will do a linear search instead for
9699        certain files, or retry all files with a linear search.  When
9700        'tagbsearch' is off, only a linear search is done.
9701
9702        Linear searching is done anyway, for one file, when Vim finds a line
9703        at the start of the file indicating that it's not sorted: >
9704           !_TAG_FILE_SORTED	0	/some comment/
9705        <	[The whitespace before and after the '0' must be a single <Tab>]
9706
9707        When a binary search was done and no match was found in any of the
9708        files listed in 'tags', and case is ignored or a pattern is used
9709        instead of a normal tag name, a retry is done with a linear search.
9710        Tags in unsorted tags files, and matches with different case will only
9711        be found in the retry.
9712
9713        If a tag file indicates that it is case-fold sorted, the second,
9714        linear search can be avoided when case is ignored.  Use a value of '2'
9715        in the "!_TAG_FILE_SORTED" line for this.  A tag file can be case-fold
9716        sorted with the -f switch to "sort" in most unices, as in the command:
9717        "sort -f -o tags tags".  For Universal ctags and Exuberant ctags
9718        version 5.x or higher (at least 5.5) the --sort=foldcase switch can be
9719        used for this as well.  Note that case must be folded to uppercase for
9720        this to work.
9721
9722        By default, tag searches are case-sensitive.  Case is ignored when
9723        'ignorecase' is set and 'tagcase' is "followic", or when 'tagcase' is
9724        "ignore".
9725        Also when 'tagcase' is "followscs" and 'smartcase' is set, or
9726        'tagcase' is "smart", and the pattern contains only lowercase
9727        characters.
9728
9729        When 'tagbsearch' is off, tags searching is slower when a full match
9730        exists, but faster when no full match exists.  Tags in unsorted tags
9731        files may only be found with 'tagbsearch' off.
9732        When the tags file is not sorted, or sorted in a wrong way (not on
9733        ASCII byte value), 'tagbsearch' should be off, or the line given above
9734        must be included in the tags file.
9735        This option doesn't affect commands that find all matching tags (e.g.,
9736        command-line completion and ":help").
9737      ]=],
9738      full_name = 'tagbsearch',
9739      scope = { 'global' },
9740      short_desc = N_('use binary searching in tags files'),
9741      type = 'boolean',
9742      varname = 'p_tbs',
9743    },
9744    {
9745      abbreviation = 'tc',
9746      cb = 'did_set_tagcase',
9747      validation_cb = 'validate_str_generic',
9748      defaults = 'followic',
9749      schema = {
9750        flags = { 'followic', 'ignore', 'match', 'followscs', 'smart' },
9751      },
9752      desc = [=[
9753        This option specifies how case is handled when searching the tags
9754        file:
9755           followic	Follow the 'ignorecase' option
9756           followscs    Follow the 'smartcase' and 'ignorecase' options
9757           ignore	Ignore case
9758           match	Match case
9759           smart	Ignore case unless an upper case letter is used
9760      ]=],
9761      full_name = 'tagcase',
9762      scope = { 'global', 'buf' },
9763      short_desc = N_('how to handle case when searching in tags files'),
9764      type = 'string',
9765      varname = 'p_tc',
9766      flags_varname = 'tc_flags',
9767    },
9768    {
9769      abbreviation = 'tfu',
9770      defaults = '',
9771      desc = [=[
9772        This option specifies a function to be used to perform tag searches
9773        (including |taglist()|).
9774        The function gets the tag pattern and should return a List of matching
9775        tags.  See |tag-function| for an explanation of how to write the
9776        function and an example.  The value can be the name of a function, a
9777        |lambda| or a |Funcref|.  See |option-value-function| for more
9778        information.
9779      ]=],
9780      full_name = 'tagfunc',
9781      scope = { 'buf' },
9782      secure = true,
9783      short_desc = N_('function used to perform tag searches'),
9784      type = 'func',
9785      varname = 'p_tfu',
9786    },
9787    {
9788      abbreviation = 'tl',
9789      defaults = 0,
9790      desc = [=[
9791        If non-zero, tags are significant up to this number of characters.
9792      ]=],
9793      full_name = 'taglength',
9794      scope = { 'global' },
9795      short_desc = N_('number of significant characters for a tag'),
9796      type = 'number',
9797      varname = 'p_tl',
9798    },
9799    {
9800      abbreviation = 'tr',
9801      defaults = true,
9802      desc = [=[
9803        If on and using a tags file in another directory, file names in that
9804        tags file are relative to the directory where the tags file is.
9805      ]=],
9806      full_name = 'tagrelative',
9807      scope = { 'global' },
9808      short_desc = N_('file names in tag file are relative'),
9809      type = 'boolean',
9810      varname = 'p_tr',
9811    },
9812    {
9813      abbreviation = 'tag',
9814      defaults = './tags;,tags',
9815      deny_duplicates = true,
9816      desc = [=[
9817        Filenames for the tag command, separated by spaces or commas.  To
9818        include a space or comma in a file name, precede it with backslashes
9819        (see |option-backslash| about including spaces/commas and backslashes).
9820        When a file name starts with "./", the '.' is replaced with the path
9821        of the current file.  But only when the 'd' flag is not included in
9822        'cpoptions'.  Environment variables are expanded |:set_env|.  Also see
9823        |tags-option|.
9824        "*", "**" and other wildcards can be used to search for tags files in
9825        a directory tree.  See |file-searching|.  E.g., "/lib/**/tags" will
9826        find all files named "tags" below "/lib".  The filename itself cannot
9827        contain wildcards, it is used as-is.  E.g., "/lib/**/tags?" will find
9828        files called "tags?".
9829        The |tagfiles()| function can be used to get a list of the file names
9830        actually used.
9831        The use of |:set+=| and |:set-=| is preferred when adding or removing
9832        file names from the list.  This avoids problems when a future version
9833        uses another default.
9834      ]=],
9835      expand = true,
9836      full_name = 'tags',
9837      list = 'onecomma',
9838      scope = { 'global', 'buf' },
9839      short_desc = N_('list of file names used by the tag command'),
9840      tags = { 'E433' },
9841      type = 'string',
9842      varname = 'p_tags',
9843    },
9844    {
9845      abbreviation = 'tgst',
9846      defaults = true,
9847      desc = [=[
9848        When on, the |tagstack| is used normally.  When off, a ":tag" or
9849        ":tselect" command with an argument will not push the tag onto the
9850        tagstack.  A following ":tag" without an argument, a ":pop" command or
9851        any other command that uses the tagstack will use the unmodified
9852        tagstack, but does change the pointer to the active entry.
9853        Resetting this option is useful when using a ":tag" command in a
9854        mapping which should not change the tagstack.
9855      ]=],
9856      full_name = 'tagstack',
9857      scope = { 'global' },
9858      short_desc = N_('push tags onto the tag stack'),
9859      type = 'boolean',
9860      varname = 'p_tgst',
9861    },
9862    {
9863      abbreviation = 'tbidi',
9864      defaults = false,
9865      desc = [=[
9866        The terminal is in charge of Bi-directionality of text (as specified
9867        by Unicode).  The terminal is also expected to do the required shaping
9868        that some languages (such as Arabic) require.
9869        Setting this option implies that 'rightleft' will not be set when
9870        'arabic' is set and the value of 'arabicshape' will be ignored.
9871        Note that setting 'termbidi' has the immediate effect that
9872        'arabicshape' is ignored, but 'rightleft' isn't changed automatically.
9873        For further details see |l10n-arabic.txt|.
9874      ]=],
9875      full_name = 'termbidi',
9876      scope = { 'global' },
9877      short_desc = N_('terminal takes care of bi-directionality'),
9878      type = 'boolean',
9879      varname = 'p_tbidi',
9880    },
9881    {
9882      abbreviation = 'tenc',
9883      defaults = '',
9884      full_name = 'termencoding',
9885      scope = { 'global' },
9886      short_desc = N_('Terminal encoding'),
9887      type = 'string',
9888      immutable = true,
9889    },
9890    {
9891      abbreviation = 'tgc',
9892      defaults = false,
9893      desc = [=[
9894        Enables 24-bit RGB color in the |TUI|.  Uses "gui" |:highlight|
9895        attributes instead of "cterm" attributes. |guifg|
9896        Requires an ISO-8613-3 compatible terminal.
9897
9898        Nvim will automatically attempt to determine if the host terminal
9899        supports 24-bit color and will enable this option if it does
9900        (unless explicitly disabled by the user).
9901      ]=],
9902      full_name = 'termguicolors',
9903      redraw = { 'ui_option' },
9904      scope = { 'global' },
9905      short_desc = N_('Terminal true color support'),
9906      type = 'boolean',
9907      varname = 'p_tgc',
9908    },
9909    {
9910      abbreviation = 'tpf',
9911      validation_cb = 'validate_str_generic',
9912      defaults = 'BS,HT,ESC,DEL',
9913      schema = {
9914        flags = { 'BS', 'HT', 'FF', 'ESC', 'DEL', 'C0', 'C1' },
9915      },
9916      deny_duplicates = true,
9917      desc = [=[
9918        A comma-separated list of options for specifying control characters
9919        to be removed from the text pasted into the terminal window. The
9920        supported values are:
9921
9922           BS	    Backspace
9923
9924           HT	    TAB
9925
9926           FF	    Form feed
9927
9928           ESC	    Escape
9929
9930           DEL	    DEL
9931
9932           C0	    Other control characters, excluding Line feed and
9933        	    Carriage return < ' '
9934
9935           C1	    Control characters 0x80...0x9F
9936      ]=],
9937      full_name = 'termpastefilter',
9938      list = 'onecomma',
9939      scope = { 'global' },
9940      type = 'string',
9941      varname = 'p_tpf',
9942      flags_varname = 'tpf_flags',
9943    },
9944    {
9945      defaults = true,
9946      desc = [=[
9947        If the host terminal supports it, buffer all screen updates
9948        made during a redraw cycle so that each screen is displayed in
9949        the terminal all at once. This can prevent tearing or flickering
9950        when the terminal updates faster than Nvim can redraw.
9951      ]=],
9952      full_name = 'termsync',
9953      redraw = { 'ui_option' },
9954      scope = { 'global' },
9955      short_desc = N_('synchronize redraw output with the host terminal'),
9956      type = 'boolean',
9957      varname = 'p_termsync',
9958    },
9959    {
9960      defaults = false,
9961      full_name = 'terse',
9962      scope = { 'global' },
9963      short_desc = N_('Deprecated'),
9964      type = 'boolean',
9965      immutable = true,
9966    },
9967    {
9968      abbreviation = 'tw',
9969      cb = 'did_set_textwidth',
9970      defaults = 0,
9971      desc = [=[
9972        Maximum width of text that is being inserted.  A longer line will be
9973        broken after white space to get this width.  A zero value disables
9974        this.
9975        When 'textwidth' is zero, 'wrapmargin' may be used.  See also
9976        'formatoptions' and |ins-textwidth|.
9977        When 'formatexpr' is set it will be used to break the line.
9978      ]=],
9979      full_name = 'textwidth',
9980      redraw = { 'current_buffer', 'highlight_only' },
9981      scope = { 'buf' },
9982      short_desc = N_('maximum width of text that is being inserted'),
9983      type = 'number',
9984      varname = 'p_tw',
9985    },
9986    {
9987      abbreviation = 'tsr',
9988      defaults = '',
9989      deny_duplicates = true,
9990      desc = [=[
9991        List of file names, separated by commas, that are used to lookup words
9992        for thesaurus completion commands |i_CTRL-X_CTRL-T|.  See
9993        |compl-thesaurus|.
9994
9995        This option is not used if 'thesaurusfunc' is set, either for the
9996        buffer or globally.
9997
9998        To include a comma in a file name precede it with a backslash.  Spaces
9999        after a comma are ignored, otherwise spaces are included in the file
10000        name.  See |option-backslash| about using backslashes.  The use of
10001        |:set+=| and |:set-=| is preferred when adding or removing directories
10002        from the list.  This avoids problems when a future version uses
10003        another default.
10004        Environment variables are expanded |:set_env|.
10005        Backticks cannot be used in this option for security reasons.
10006      ]=],
10007      expand = true,
10008      full_name = 'thesaurus',
10009      list = 'onecomma',
10010      normal_dname_chars = true,
10011      scope = { 'global', 'buf' },
10012      short_desc = N_('list of thesaurus files for keyword completion'),
10013      type = 'string',
10014      varname = 'p_tsr',
10015    },
10016    {
10017      abbreviation = 'tsrfu',
10018      defaults = '',
10019      desc = [=[
10020        This option specifies a function to be used for thesaurus completion
10021        with CTRL-X CTRL-T.  |i_CTRL-X_CTRL-T| See |compl-thesaurusfunc|.
10022        The value can be the name of a function, a |lambda| or a |Funcref|.
10023        See |option-value-function| for more information.
10024      ]=],
10025      full_name = 'thesaurusfunc',
10026      scope = { 'global', 'buf' },
10027      secure = true,
10028      short_desc = N_('function used for thesaurus completion'),
10029      type = 'func',
10030      varname = 'p_tsrfu',
10031    },
10032    {
10033      abbreviation = 'top',
10034      defaults = false,
10035      desc = [=[
10036        When on: The tilde command "~" behaves like an operator.
10037      ]=],
10038      full_name = 'tildeop',
10039      scope = { 'global' },
10040      short_desc = N_('tilde command "~" behaves like an operator'),
10041      type = 'boolean',
10042      varname = 'p_to',
10043    },
10044    {
10045      abbreviation = 'to',
10046      defaults = true,
10047      desc = [=[
10048        This option and 'timeoutlen' determine the behavior when part of a
10049        mapped key sequence has been received. For example, if <c-f> is
10050        pressed and 'timeout' is set, Nvim will wait 'timeoutlen' milliseconds
10051        for any key that can follow <c-f> in a mapping.
10052      ]=],
10053      full_name = 'timeout',
10054      scope = { 'global' },
10055      short_desc = N_('time out on mappings and key codes'),
10056      type = 'boolean',
10057      varname = 'p_timeout',
10058    },
10059    {
10060      abbreviation = 'tm',
10061      defaults = 1000,
10062      desc = [=[
10063        Time in milliseconds to wait for a mapped sequence to complete.
10064      ]=],
10065      full_name = 'timeoutlen',
10066      scope = { 'global' },
10067      short_desc = N_('time out time in milliseconds'),
10068      type = 'number',
10069      varname = 'p_tm',
10070    },
10071    {
10072      cb = 'did_set_title_icon',
10073      defaults = false,
10074      desc = [=[
10075        If enabled, Nvim will update the (GUI or terminal) window title. The
10076        format is configured by 'titlestring'. By default it looks like: >
10077        	filename [+=-] (path) - Nvim
10078        <
10079        where: >
10080        	filename	the name of the file being edited
10081        	-		indicates the file cannot be modified, 'ma' off
10082        	+		indicates the file was modified
10083        	=		indicates the file is read-only
10084        	=+		indicates the file is read-only and modified
10085        	(path)		is the path of the file being edited
10086        	- Nvim		the server name |v:servername| or "Nvim"
10087        <
10088      ]=],
10089      full_name = 'title',
10090      scope = { 'global' },
10091      short_desc = N_('set the title of the window'),
10092      type = 'boolean',
10093      varname = 'p_title',
10094    },
10095    {
10096      cb = 'did_set_titlelen',
10097      defaults = 85,
10098      desc = [=[
10099        Gives the percentage of 'columns' to use for the length of the window
10100        title.  When the title is longer, only the end of the path name is
10101        shown.  A '<' character before the path name is used to indicate this.
10102        Using a percentage makes this adapt to the width of the window.  But
10103        it won't work perfectly, because the actual number of characters
10104        available also depends on the font used and other things in the title
10105        bar.  When 'titlelen' is zero the full path is used.  Otherwise,
10106        values from 1 to 30000 percent can be used.
10107        'titlelen' is also used for the 'titlestring' option.
10108      ]=],
10109      full_name = 'titlelen',
10110      scope = { 'global' },
10111      short_desc = N_("of 'columns' used for window title"),
10112      type = 'number',
10113      varname = 'p_titlelen',
10114    },
10115    {
10116      defaults = '',
10117      desc = [=[
10118        If not empty, this option will be used to set the window title when
10119        exiting.  Only if 'title' is enabled.
10120      ]=],
10121      full_name = 'titleold',
10122      no_mkrc = true,
10123      scope = { 'global' },
10124      secure = true,
10125      short_desc = N_('title, restored when exiting'),
10126      type = 'string',
10127      varname = 'p_titleold',
10128    },
10129    {
10130      cb = 'did_set_titlestring',
10131      defaults = '',
10132      desc = [=[
10133        Formats the window title, enabled by the 'title' option.
10134
10135        Contains printf-style "%" items, expanded according to the rules of
10136        'statusline'.  If a "%" format is invalid, it is used as-is and no
10137        error will be given.
10138
10139        The default (empty) behaviour is equivalent to: >vim
10140            set titlestring=%t%(\ %M%)%(\ \(%{expand('%:p:~:h')}\)%)%a\ -\ Nvim
10141        <
10142        Example: >vim
10143            auto BufEnter * let &titlestring = hostname() .. "/" .. expand("%:p")
10144            set title titlestring=%<%F%=%l/%L-%P titlelen=70
10145        <	The value of 'titlelen' is used to align items in the middle
10146        or right of the available space.
10147
10148        Example: to have the file name first: >vim
10149            set titlestring=%t%(\ %M%)%(\ (%{expand(\"%:~:.:h\")})%)%(\ %a%)
10150        <	Note the use of "%{ }" and an expression to get the path of
10151        the file, without the file name.  The "%( %)" constructs add a
10152        separating space only when needed.
10153
10154        NOTE: Use of special characters in 'titlestring' may cause the display
10155        to be garbled (e.g., when it contains a CR or NL character).
10156
10157        This option cannot be set in a modeline when 'modelineexpr' is off.
10158      ]=],
10159      full_name = 'titlestring',
10160      modelineexpr = true,
10161      scope = { 'global' },
10162      short_desc = N_('to use for the Vim window title'),
10163      type = 'string',
10164      varname = 'p_titlestring',
10165    },
10166    {
10167      defaults = true,
10168      desc = [=[
10169        This option and 'ttimeoutlen' determine the behavior when part of a
10170        key code sequence has been received by the |TUI|.
10171
10172        For example if <Esc> (the \x1b byte) is received and 'ttimeout' is
10173        set, Nvim waits 'ttimeoutlen' milliseconds for the terminal to
10174        complete a key code sequence. If no input arrives before the timeout,
10175        a single <Esc> is assumed. Many TUI cursor key codes start with <Esc>.
10176
10177        On very slow systems this may fail, causing cursor keys not to work
10178        sometimes.  If you discover this problem you can ":set ttimeoutlen=9999".
10179        Nvim will wait for the next character to arrive after an <Esc>.
10180      ]=],
10181      full_name = 'ttimeout',
10182      redraw = { 'ui_option' },
10183      scope = { 'global' },
10184      short_desc = N_('out on mappings'),
10185      type = 'boolean',
10186      varname = 'p_ttimeout',
10187    },
10188    {
10189      abbreviation = 'ttm',
10190      defaults = 50,
10191      desc = [=[
10192        Time in milliseconds to wait for a key code sequence to complete. Also
10193        used for CTRL-\ CTRL-N and CTRL-\ CTRL-G when part of a command has
10194        been typed.
10195      ]=],
10196      full_name = 'ttimeoutlen',
10197      redraw = { 'ui_option' },
10198      scope = { 'global' },
10199      short_desc = N_('time out time for key codes in milliseconds'),
10200      type = 'number',
10201      varname = 'p_ttm',
10202    },
10203    {
10204      abbreviation = 'tf',
10205      defaults = true,
10206      desc = [=[
10207        Enables Nvim |TUI| features which assume a fast (usually local) host
10208        terminal. During startup, Nvim queries the terminal (for 'background'
10209        detection, etc.) and must wait for a response (or timeout).
10210
10211        If your terminal environment is slow (e.g. remote SSH), or broken
10212        (doesn't respond to queries), Nvim startup may be slower. Therefore
10213        you can disable this option by setting the `$NVIM_NOTTYFAST`
10214        environment variable before starting Nvim: >
10215        	NVIM_NOTTYFAST=1 nvim
10216        <
10217
10218        The queries are performed early, before |--cmd| and user |config|, so
10219        `:set nottyfast` in your config happens too late.
10220      ]=],
10221      full_name = 'ttyfast',
10222      no_mkrc = true,
10223      scope = { 'global' },
10224      short_desc = N_('assume terminal responds quickly, enabling more features'),
10225      -- Vim E1568: https://github.com/vim/vim/blob/0f9218851dc91a855c3d186ccd05f550907cf37e/src/errors.h#L3791
10226      tags = { 'E1568', '$NVIM_NOTTYFAST' },
10227      type = 'boolean',
10228      varname = 'p_tf',
10229    },
10230    {
10231      abbreviation = 'udir',
10232      defaults = '',
10233      deny_duplicates = true,
10234      desc = [=[
10235        List of directory names for undo files, separated with commas.
10236        See 'backupdir' for details of the format.
10237        "." means using the directory of the file.  The undo file name for
10238        "file.txt" is ".file.txt.un~".
10239        For other directories the file name is the full path of the edited
10240        file, with path separators replaced with "%".
10241        When writing: The first directory that exists is used.  "." always
10242        works, no directories after "." will be used for writing.  If none of
10243        the directories exist Nvim will attempt to create the last directory in
10244        the list.
10245        When reading all entries are tried to find an undo file.  The first
10246        undo file that exists is used.  When it cannot be read an error is
10247        given, no further entry is used.
10248        See |undo-persistence|.
10249        Environment variables are expanded |:set_env|.
10250
10251        Note that unlike 'directory' and 'backupdir', 'undodir' always acts as
10252        though the trailing slashes are present (see 'backupdir' for what this
10253        means).
10254      ]=],
10255      expand = 'nodefault',
10256      full_name = 'undodir',
10257      list = 'onecomma',
10258      scope = { 'global' },
10259      secure = true,
10260      short_desc = N_('where to store undo files'),
10261      tags = { 'E5003' },
10262      type = 'string',
10263      varname = 'p_udir',
10264    },
10265    {
10266      abbreviation = 'udf',
10267      cb = 'did_set_undofile',
10268      defaults = false,
10269      desc = [=[
10270        When on, Vim automatically saves undo history to an undo file when
10271        writing a buffer to a file, and restores undo history from the same
10272        file on buffer read.
10273        The directory where the undo file is stored is specified by 'undodir'.
10274        For more information about this feature see |undo-persistence|.
10275        The undo file is not read when 'undoreload' causes the buffer from
10276        before a reload to be saved for undo.
10277        When 'undofile' is turned off the undo file is NOT deleted.
10278      ]=],
10279      full_name = 'undofile',
10280      scope = { 'buf' },
10281      short_desc = N_('save undo information in a file'),
10282      type = 'boolean',
10283      varname = 'p_udf',
10284    },
10285    {
10286      abbreviation = 'ul',
10287      cb = 'did_set_undolevels',
10288      defaults = 1000,
10289      desc = [=[
10290        Maximum number of changes that can be undone.  Since undo information
10291        is kept in memory, higher numbers will cause more memory to be used.
10292        Nevertheless, a single change can already use a large amount of
10293        memory.  Set to 0 for Vi compatibility: One level of undo and "u"
10294        undoes itself: >vim
10295        	set ul=0
10296        <	But you can also get Vi compatibility by including the 'u' flag in
10297        'cpoptions', and still be able to use CTRL-R to repeat undo.
10298        Also see |undo-two-ways|.
10299        Set to -1 for no undo at all.  You might want to do this only for the
10300        current buffer: >vim
10301        	setlocal ul=-1
10302        <	This helps when you run out of memory for a single change.
10303
10304        The local value is set to -123456 when the global value is to be used.
10305
10306        Also see |clear-undo|.
10307      ]=],
10308      full_name = 'undolevels',
10309      scope = { 'global', 'buf' },
10310      short_desc = N_('maximum number of changes that can be undone'),
10311      type = 'number',
10312      varname = 'p_ul',
10313    },
10314    {
10315      abbreviation = 'ur',
10316      defaults = 10000,
10317      desc = [=[
10318        Save the whole buffer for undo when reloading it.  This applies to the
10319        ":e!" command and reloading for when the buffer changed outside of
10320        Vim. |FileChangedShell|
10321        The save only happens when this option is negative or when the number
10322        of lines is smaller than the value of this option.
10323        Set this option to zero to disable undo for a reload.
10324
10325        When saving undo for a reload, any undo file is not read.
10326
10327        Note that this causes the whole buffer to be stored in memory.  Set
10328        this option to a lower value if you run out of memory.
10329      ]=],
10330      full_name = 'undoreload',
10331      scope = { 'global' },
10332      short_desc = N_('max nr of lines to save for undo on a buffer reload'),
10333      type = 'number',
10334      varname = 'p_ur',
10335    },
10336    {
10337      abbreviation = 'uc',
10338      cb = 'did_set_updatecount',
10339      defaults = 200,
10340      desc = [=[
10341        The |swap-file| will be written after typing this many characters.
10342
10343        - Ignored in buffers where 'buftype' is "nofile" or "nowrite".
10344        - Initialized to 10000 when editing in readonly |-R| mode.
10345        - To disable swapfiles per-buffer, unset the 'swapfile' option.
10346        - To disable swapfiles globally, set this option to zero (or start
10347          with |-n|). See |crash-recovery|. Existing swapfiles are not deleted.
10348        - When re-enabled (from zero to non-zero), swapfiles are created for
10349          all buffers that have 'swapfile' set.
10350      ]=],
10351      full_name = 'updatecount',
10352      scope = { 'global' },
10353      short_desc = N_('after this many characters flush swap file'),
10354      type = 'number',
10355      varname = 'p_uc',
10356    },
10357    {
10358      abbreviation = 'ut',
10359      defaults = 4000,
10360      desc = [=[
10361        If this many milliseconds nothing is typed the swap file will be
10362        written to disk (see |crash-recovery|).  Also used for the
10363        |CursorHold| autocommand event.
10364      ]=],
10365      full_name = 'updatetime',
10366      scope = { 'global' },
10367      short_desc = N_('after this many milliseconds flush swap file'),
10368      type = 'number',
10369      varname = 'p_ut',
10370    },
10371    {
10372      abbreviation = 'vsts',
10373      cb = 'did_set_varsofttabstop',
10374      defaults = '',
10375      desc = [=[
10376        Defines variable-width soft tab stops.  The value is a comma-separated
10377        list of widths in columns.  Each width defines the number of columns
10378        before the next soft tab stop.  The last value repeats indefinitely.
10379
10380        For example, when editing assembly language files where statements
10381        start in the 9th column and comments in the 41st, it may be useful
10382        to use the following: >vim
10383        	set varsofttabstop=8,32,8
10384        <	This sets soft tab stops at column 8, then at column 40 (8 + 32), and
10385        every 8 columns thereafter.
10386
10387        Note: this setting overrides 'softtabstop'.
10388        See section |30.5| of the user manual for detailed explanations on how
10389        Vim works with tabs and spaces.
10390      ]=],
10391      full_name = 'varsofttabstop',
10392      list = 'comma',
10393      scope = { 'buf' },
10394      short_desc = N_('list of numbers of spaces that <Tab> uses while editing'),
10395      type = 'string',
10396      varname = 'p_vsts',
10397    },
10398    {
10399      abbreviation = 'vts',
10400      cb = 'did_set_vartabstop',
10401      defaults = '',
10402      desc = [=[
10403        Defines variable-width tab stops.  The value is a comma-separated list
10404        of widths in columns.  Each width defines the number of columns before
10405        the next tab stop; the last value repeats indefinitely.
10406
10407        For example: >
10408        	:set vartabstop=4,8
10409        <	This places the first tab stop 4 columns from the start of the line
10410        and each subsequent tab stop 8 columns apart.
10411
10412        Note: this setting overrides 'tabstop'.
10413        On UNIX, it is recommended to keep the default tabstop value of 8.
10414        Consider setting 'varsofttabstop' instead.
10415        See section |30.5| of the user manual for detailed explanations on how
10416        Vim works with tabs and spaces.
10417      ]=],
10418      full_name = 'vartabstop',
10419      list = 'comma',
10420      redraw = { 'current_buffer' },
10421      scope = { 'buf' },
10422      short_desc = N_('list of numbers of spaces that <Tab> in file uses'),
10423      type = 'string',
10424      varname = 'p_vts',
10425    },
10426    {
10427      abbreviation = 'vbs',
10428      defaults = 0,
10429      desc = [=[
10430        Sets the verbosity level.  Also set by |-V| and |:verbose|.
10431
10432        Tracing of assignments to options, mappings, etc. in Lua scripts is
10433        enabled at level 1; Lua scripts are not traced when 'verbose' is 0,
10434        for performance.
10435
10436        If greater than or equal to a given level, Nvim produces the following
10437        messages:
10438
10439        Level   Messages ~
10440        ----------------------------------------------------------------------
10441        1	Enables Lua tracing (see above). Does not produce messages.
10442        2	When a file is ":source"'ed, or |shada| file is read or written.
10443        3	UI info, terminal capabilities.
10444        4	Shell commands.
10445        5	Every searched tags file and include file.
10446        8	Files for which a group of autocommands is executed.
10447        9	Executed autocommands.
10448        11	Finding items in a path.
10449        12	Vimscript function calls.
10450        13	When an exception is thrown, caught, finished, or discarded.
10451        14	Anything pending in a ":finally" clause.
10452        15	Ex commands from a script (truncated at 200 characters).
10453        16	Ex commands.
10454
10455        If 'verbosefile' is set then the verbose messages are not displayed.
10456      ]=],
10457      full_name = 'verbose',
10458      redraw = { 'ui_option' },
10459      scope = { 'global' },
10460      short_desc = N_('give informative messages'),
10461      type = 'number',
10462      varname = 'p_verbose',
10463    },
10464    {
10465      abbreviation = 'vfile',
10466      cb = 'did_set_verbosefile',
10467      defaults = '',
10468      desc = [=[
10469        When not empty all messages are written in a file with this name.
10470        When the file exists messages are appended.
10471        Writing to the file ends when Vim exits or when 'verbosefile' is made
10472        empty.  Writes are buffered, thus may not show up for some time.
10473        Setting 'verbosefile' to a new value is like making it empty first.
10474        The difference with |:redir| is that verbose messages are not
10475        displayed when 'verbosefile' is set.
10476        Environment variables are expanded |:set_env|.
10477      ]=],
10478      expand = true,
10479      full_name = 'verbosefile',
10480      scope = { 'global' },
10481      secure = true,
10482      short_desc = N_('file to write messages in'),
10483      type = 'string',
10484      varname = 'p_vfile',
10485    },
10486    {
10487      abbreviation = 'vdir',
10488      defaults = '',
10489      desc = [=[
10490        Name of the directory where to store files for |:mkview|.
10491        Environment variables are expanded |:set_env|.
10492      ]=],
10493      expand = 'nodefault',
10494      full_name = 'viewdir',
10495      scope = { 'global' },
10496      secure = true,
10497      short_desc = N_('directory where to store files with :mkview'),
10498      type = 'string',
10499      varname = 'p_vdir',
10500    },
10501    {
10502      abbreviation = 'vop',
10503      cb = 'did_set_str_generic',
10504      validation_cb = 'validate_str_generic',
10505      defaults = 'folds,cursor,curdir',
10506      deny_duplicates = true,
10507      desc = [=[
10508        Changes the effect of the |:mkview| command.  It is a comma-separated
10509        list of words.  Each word enables saving and restoring something:
10510           word		save and restore ~
10511           cursor	cursor position in file and in window
10512           curdir	local current directory, if set with |:lcd|
10513           folds	manually created folds, opened/closed folds and local
10514        		fold options
10515           options	options and mappings local to a window or buffer (not
10516                        global values for local options), except Lua functions
10517        		|option-value-function|.
10518           localoptions same as "options"
10519           slash	|deprecated| Always enabled. Uses "/" in filenames.
10520           unix		|deprecated| Always enabled. Uses "\n" line endings.
10521      ]=],
10522      expand_cb = 'expand_set_str_generic',
10523      full_name = 'viewoptions',
10524      list = 'onecomma',
10525      scope = { 'global' },
10526      short_desc = N_('specifies what to save for :mkview'),
10527      type = 'string',
10528      varname = 'p_vop',
10529      flags_varname = 'vop_flags',
10530    },
10531    {
10532      abbreviation = 've',
10533      cb = 'did_set_virtualedit',
10534      validation_cb = 'validate_str_generic',
10535      defaults = '',
10536      schema = {
10537        flags = {
10538          { 'block', 0x05 },
10539          { 'insert', 0x06 },
10540          { 'all', 0x04 },
10541          { 'onemore', 0x08 },
10542          { 'none', 0x10 },
10543          { 'NONE', 0x20, 'NoneU' }, -- alternative spelling of "none" (C token override)
10544        },
10545      },
10546      deny_duplicates = true,
10547      desc = [=[
10548        A comma-separated list of these words:
10549            block	Allow virtual editing in Visual block mode.
10550            insert	Allow virtual editing in Insert mode.
10551            all		Allow virtual editing in all modes.
10552            onemore	Allow the cursor to move just past the end of the line
10553            none	When used as the local value, do not allow virtual
10554        		editing even when the global value is set.  When used
10555        		as the global value, "none" is the same as "".
10556            NONE	Alternative spelling of "none".
10557
10558        Virtual editing means that the cursor can be positioned where there is
10559        no actual character.  This can be halfway into a tab or beyond the end
10560        of the line.  Useful for selecting a rectangle in Visual mode and
10561        editing a table.
10562        "onemore" is not the same, it will only allow moving the cursor just
10563        after the last character of the line.  This makes some commands more
10564        consistent.  Previously the cursor was always past the end of the line
10565        if the line was empty.  But it is far from Vi compatible.  It may also
10566        break some plugins or Vim scripts.  For example because |l| can move
10567        the cursor after the last character.  Use with care!
10568        Using the `$` command will move to the last character in the line, not
10569        past it.  This may actually move the cursor to the left!
10570        The `g$` command will move to the end of the screen line.
10571        It doesn't make sense to combine "all" with "onemore", but you will
10572        not get a warning for it.
10573        When combined with other words, "none" is ignored.
10574      ]=],
10575      full_name = 'virtualedit',
10576      list = 'onecomma',
10577      redraw = { 'curswant' },
10578      scope = { 'global', 'win' },
10579      short_desc = N_('when to use virtual editing'),
10580      type = 'string',
10581      varname = 'p_ve',
10582      flags_varname = 've_flags',
10583    },
10584    {
10585      abbreviation = 'vb',
10586      defaults = false,
10587      desc = [=[
10588        Use visual bell instead of beeping.  Also see 'errorbells'.
10589      ]=],
10590      full_name = 'visualbell',
10591      scope = { 'global' },
10592      short_desc = N_('use visual bell instead of beeping'),
10593      type = 'boolean',
10594      varname = 'p_vb',
10595    },
10596    {
10597      defaults = true,
10598      desc = [=[
10599        Give a warning message when a shell command is used while the buffer
10600        has been changed.
10601      ]=],
10602      full_name = 'warn',
10603      scope = { 'global' },
10604      short_desc = N_('for shell command when buffer was changed'),
10605      type = 'boolean',
10606      varname = 'p_warn',
10607    },
10608    {
10609      abbreviation = 'ww',
10610      validation_cb = 'validate_whichwrap',
10611      defaults = 'b,s',
10612      desc = [=[
10613        Allow specified keys that move the cursor left/right to move to the
10614        previous/next line when the cursor is on the first/last character in
10615        the line.  Concatenate characters to allow this for these keys:
10616        	char   key	  mode	~
10617        	 b    <BS>	 Normal and Visual
10618        	 s    <Space>	 Normal and Visual
10619        	 h    "h"	 Normal and Visual (not recommended)
10620        	 l    "l"	 Normal and Visual (not recommended)
10621        	 <    <Left>	 Normal and Visual
10622        	 >    <Right>	 Normal and Visual
10623        	 ~    "~"	 Normal
10624        	 [    <Left>	 Insert and Replace
10625        	 ]    <Right>	 Insert and Replace
10626        For example: >vim
10627        	set ww=<,>,[,]
10628        <	allows wrap only when cursor keys are used.
10629        When the movement keys are used in combination with a delete or change
10630        operator, the <EOL> also counts for a character.  This makes "3h"
10631        different from "3dh" when the cursor crosses the end of a line.  This
10632        is also true for "x" and "X", because they do the same as "dl" and
10633        "dh".  If you use this, you may also want to use the mapping
10634        ":map <BS> X" to make backspace delete the character in front of the
10635        cursor.
10636        When 'l' is included and it is used after an operator at the end of a
10637        line (not an empty line) then it will not move to the next line.  This
10638        makes "dl", "cl", "yl" etc. work normally.
10639      ]=],
10640      expand_cb = 'expand_set_whichwrap',
10641      full_name = 'whichwrap',
10642      list = 'flagscomma',
10643      scope = { 'global' },
10644      short_desc = N_('allow specified keys to cross line boundaries'),
10645      type = 'string',
10646      varname = 'p_ww',
10647    },
10648    {
10649      abbreviation = 'wc',
10650      validation_cb = 'validate_wildchar',
10651      defaults = {
10652        if_true = macros('TAB', 'number'),
10653        doc = '<Tab>',
10654      },
10655      desc = [=[
10656        Character you have to type to start wildcard expansion in the
10657        command-line, as specified with 'wildmode'.
10658        More info here: |cmdline-completion|.
10659        The character is not recognized when used inside a macro.  See
10660        'wildcharm' for that.
10661        Some keys will not work, such as CTRL-C, <CR> and Enter.
10662        <Esc> can be used, but hitting it twice in a row will still exit
10663        command-line as a failsafe measure.
10664        Although 'wc' is a number option, it can be specified as a number, a
10665        single character, a |key-notation| (e.g. <Up>, <C-F>) or a letter
10666        preceded with a caret (e.g. `^F` is CTRL-F): >vim
10667        	:set wc=27
10668        	:set wc=X
10669        	:set wc=^I
10670        	set wc=<Tab>
10671        <	'wildchar' also enables completion in search pattern contexts such as
10672        |/|, |?|, |:s|, |:g|, |:v|, and |:vim|.  To insert a literal <Tab>
10673        instead of triggering completion, type <C-V><Tab> or "\t".
10674        See also 'wildoptions' and |wildtrigger()|.
10675      ]=],
10676      full_name = 'wildchar',
10677      scope = { 'global' },
10678      short_desc = N_('command-line character for wildcard expansion'),
10679      type = 'number',
10680      varname = 'p_wc',
10681    },
10682    {
10683      abbreviation = 'wcm',
10684      validation_cb = 'validate_wildchar',
10685      defaults = 0,
10686      desc = [=[
10687        'wildcharm' works exactly like 'wildchar', except that it is
10688        recognized when used inside a macro.  You can find "spare"
10689        command-line keys suitable for this option by looking at
10690        |ex-edit-index|.  Normally you'll never actually type 'wildcharm',
10691        just use it in mappings that automatically invoke completion mode,
10692        e.g.: >vim
10693        	set wcm=<C-Z>
10694        	cnoremap ss so $vim/sessions/*.vim<C-Z>
10695        <	Then after typing :ss you can use CTRL-P & CTRL-N.
10696      ]=],
10697      full_name = 'wildcharm',
10698      scope = { 'global' },
10699      short_desc = N_("like 'wildchar' but also works when mapped"),
10700      type = 'number',
10701      varname = 'p_wcm',
10702    },
10703    {
10704      abbreviation = 'wig',
10705      defaults = '',
10706      deny_duplicates = true,
10707      desc = [=[
10708        A list of file patterns.  A file that matches with one of these
10709        patterns is ignored when expanding |wildcards|, completing file or
10710        directory names, and influences the result of |expand()|, |glob()| and
10711        |globpath()| unless a flag is passed to disable this.
10712        The pattern is used like with |:autocmd|, see |autocmd-pattern|.
10713        Also see 'suffixes'.
10714        Example: >vim
10715        	set wildignore=*.o,*.obj
10716        <	The use of |:set+=| and |:set-=| is preferred when adding or removing
10717        a pattern from the list.  This avoids problems when a future version
10718        uses another default.
10719      ]=],
10720      full_name = 'wildignore',
10721      list = 'onecomma',
10722      scope = { 'global' },
10723      short_desc = N_('files matching these patterns are not completed'),
10724      type = 'string',
10725      varname = 'p_wig',
10726    },
10727    {
10728      abbreviation = 'wic',
10729      defaults = false,
10730      desc = [=[
10731        When set case is ignored when completing file names and directories.
10732        Has no effect when 'fileignorecase' is set.
10733        Does not apply when the shell is used to expand wildcards, which
10734        happens when there are special characters.
10735      ]=],
10736      full_name = 'wildignorecase',
10737      scope = { 'global' },
10738      short_desc = N_('ignore case when completing file names'),
10739      type = 'boolean',
10740      varname = 'p_wic',
10741    },
10742    {
10743      abbreviation = 'wmnu',
10744      defaults = true,
10745      desc = [=[
10746        When 'wildmenu' is on, command-line completion operates in an enhanced
10747        mode.  On pressing 'wildchar' (usually <Tab>) to invoke completion,
10748        the possible matches are shown.
10749        When 'wildoptions' contains "pum", then the completion matches are
10750        shown in a popup menu.  Otherwise they are displayed just above the
10751        command line, with the first match highlighted (overwriting the status
10752        line, if there is one).
10753        Keys that show the previous/next match, such as <Tab> or
10754        CTRL-P/CTRL-N, cause the highlight to move to the appropriate match.
10755        'wildmode' must specify "full": "longest" and "list" do not start
10756        'wildmenu' mode. You can check the current mode with |wildmenumode()|.
10757        The menu is cancelled when a key is hit that is not used for selecting
10758        a completion.
10759
10760        While the menu is active these keys have special meanings:
10761        CTRL-P		- go to the previous entry
10762        CTRL-N		- go to the next entry
10763        <Left> <Right>	- select previous/next match (like CTRL-P/CTRL-N)
10764        <PageUp>	- select a match several entries back
10765        <PageDown>	- select a match several entries further
10766        <Up>		- in filename/menu name completion: move up into
10767        		  parent directory or parent menu.
10768        <Down>		- in filename/menu name completion: move into a
10769        		  subdirectory or submenu.
10770        <CR>		- in menu completion, when the cursor is just after a
10771        		  dot: move into a submenu.
10772        CTRL-E		- end completion, go back to what was there before
10773        		  selecting a match.
10774        CTRL-Y		- accept the currently selected match and stop
10775        		  completion.
10776
10777        If you want <Left> and <Right> to move the cursor instead of selecting
10778        a different match, use this: >vim
10779        	cnoremap <Left> <Space><BS><Left>
10780        	cnoremap <Right> <Space><BS><Right>
10781        <
10782        |hl-WildMenu| highlights the current match.
10783      ]=],
10784      full_name = 'wildmenu',
10785      scope = { 'global' },
10786      short_desc = N_('use menu for command line completion'),
10787      type = 'boolean',
10788      varname = 'p_wmnu',
10789    },
10790    {
10791      abbreviation = 'wim',
10792      cb = 'did_set_wildmode',
10793      defaults = 'full',
10794      -- Keep this in sync with check_opt_wim().
10795      schema = {
10796        flags = { 'full', 'longest', 'list', 'lastused', 'noselect', 'noinsert' },
10797      },
10798      deny_duplicates = false,
10799      desc = [=[
10800        Completion mode used for the character specified with 'wildchar'.
10801        This option is a comma-separated list of up to four parts,
10802        corresponding to the first, second, third, and fourth presses of
10803        'wildchar'.  Each part is a colon-separated list of completion
10804        behaviors, which are applied simultaneously during that phase.
10805
10806        The possible behavior values are:
10807        ""		Only complete (insert) the first match.  No further
10808        		matches are cycled or listed.
10809        "full"		Complete the next full match.  Cycles through all
10810        		matches, returning to the original input after the
10811        		last match.  If 'wildmenu' is enabled, it will be
10812        		shown.
10813        "longest"	Complete to the longest common substring.  If this
10814        		doesn't extend the input, the next 'wildmode' part is
10815        		used.
10816        "list"		If multiple matches are found, list all of them.
10817        "lastused"	When completing buffer names, sort them by most
10818        		recently used (excluding the current buffer).  Only
10819        		applies to buffer name completion.
10820        "noselect"	If 'wildmenu' is enabled, show the menu but do not
10821        		preselect the first item.
10822        "noinsert"	If 'wildmenu' is enabled, show the menu and preselect
10823        		the first match, but do not insert it in the command
10824        		line.  If both "noinsert" and "noselect" are present,
10825        		"noselect" takes precedence.
10826        If only one match exists, it is completed fully, unless "noselect" or
10827        "noinsert" is specified.
10828
10829        Some useful combinations of colon-separated values:
10830        "longest:full"		Start with the longest common string and show
10831        			'wildmenu' (if enabled).  Does not cycle
10832        			through full matches.
10833        "list:full"		List all matches and complete first match.
10834        "list:longest"		List all matches and complete till the longest
10835        			common prefix.
10836        "list:lastused"		List all matches.  When completing buffers,
10837        			sort them by most recently used (excluding the
10838        			current buffer).
10839        "noselect:lastused"	Do not preselect the first item in 'wildmenu'
10840        			if it is active.  When completing buffers,
10841        			sort them by most recently used (excluding the
10842        			current buffer).
10843
10844        Examples: >vim
10845        	set wildmode=full
10846        <	Complete full match on every press (default behavior) >vim
10847        	set wildmode=longest,full
10848        <	First press: longest common substring
10849        Second press: cycle through full matches >vim
10850        	set wildmode=list:full
10851        <	First press: list all matches and complete the first one >vim
10852        	set wildmode=list,full
10853        <	First press: list matches only
10854        Second press: complete full matches >vim
10855        	set wildmode=longest,list
10856        <	First press: longest common substring
10857        Second press: list all matches >vim
10858        	set wildmode=noselect:full
10859        <	First press: show 'wildmenu' without completing or selecting
10860        Second press: cycle full matches >vim
10861        	set wildmode=noselect:lastused,full
10862        <	Same as above, but buffer matches are sorted by time last used
10863        More info here: |cmdline-completion|.
10864      ]=],
10865      full_name = 'wildmode',
10866      list = 'onecommacolon',
10867      scope = { 'global' },
10868      short_desc = N_("mode for 'wildchar' command-line expansion"),
10869      type = 'string',
10870      varname = 'p_wim',
10871    },
10872    {
10873      abbreviation = 'wop',
10874      validation_cb = 'validate_str_generic',
10875      defaults = 'pum,tagfile',
10876      schema = {
10877        flags = { 'fuzzy', 'tagfile', 'pum', 'exacttext' },
10878      },
10879      deny_duplicates = true,
10880      desc = [=[
10881        A list of words that change how |cmdline-completion| is done.
10882        The following values are supported:
10883          exacttext	When this flag is present, search pattern completion
10884        		(e.g., in |/|, |?|, |:s|, |:g|, |:v|, and |:vim|)
10885        		shows exact buffer text as menu items, without
10886        		preserving regex artifacts like position
10887        		anchors (e.g., |/\\<|).  This provides more intuitive
10888        		menu items that match the actual buffer text.
10889        		However, searches may be less accurate since the
10890        		pattern is not preserved exactly.
10891        		By default, Vim preserves the typed pattern (with
10892        		anchors) and appends the matched word.  This preserves
10893        		search correctness, especially when using regular
10894        		expressions or with 'smartcase' enabled.  However, the
10895        		case of the appended matched word may not exactly
10896        		match the case of the word in the buffer.
10897          fuzzy		Use |fuzzy-matching| to find completion matches.  When
10898        		this value is specified, wildcard expansion will not
10899        		be used for completion.  The matches will be sorted by
10900        		the "best match" rather than alphabetically sorted.
10901        		This will find more matches than the wildcard
10902        		expansion.  Currently fuzzy matching based completion
10903        		is not supported for file and directory names and
10904        		instead wildcard expansion is used.
10905          pum		Display the completion matches using the popup menu in
10906        		the same style as the |ins-completion-menu|.  When an
10907        		info popup is shown next to the menu, it can be
10908        		scrolled by moving the mouse pointer on top of it and
10909        		using the scroll wheel.
10910          tagfile	When using CTRL-D to list matching tags, the kind of
10911        		tag and the file of the tag is listed.	Only one match
10912        		is displayed per line.  Often used tag kinds are:
10913        			d	#define
10914        			f	function
10915
10916        This option does not apply to |ins-completion|.  See 'completeopt' for
10917        that.
10918      ]=],
10919      full_name = 'wildoptions',
10920      list = 'onecomma',
10921      scope = { 'global' },
10922      short_desc = N_('specifies how command line completion is done'),
10923      type = 'string',
10924      varname = 'p_wop',
10925      flags_varname = 'wop_flags',
10926    },
10927    {
10928      abbreviation = 'wak',
10929      validation_cb = 'validate_str_generic',
10930      defaults = 'menu',
10931      schema = {
10932        enum = { 'yes', 'menu', 'no' },
10933      },
10934      desc = [=[
10935        		only used in Win32
10936        Some GUI versions allow the access to menu entries by using the ALT
10937        key in combination with a character that appears underlined in the
10938        menu.  This conflicts with the use of the ALT key for mappings and
10939        entering special characters.  This option tells what to do:
10940          no	Don't use ALT keys for menus.  ALT key combinations can be
10941        	mapped, but there is no automatic handling.
10942          yes	ALT key handling is done by the windowing system.  ALT key
10943        	combinations cannot be mapped.
10944          menu	Using ALT in combination with a character that is a menu
10945        	shortcut key, will be handled by the windowing system.  Other
10946        	keys can be mapped.
10947        If the menu is disabled by excluding 'm' from 'guioptions', the ALT
10948        key is never used for the menu.
10949        This option is not used for <F10>; on Win32.
10950      ]=],
10951      full_name = 'winaltkeys',
10952      scope = { 'global' },
10953      short_desc = N_('when the windows system handles ALT keys'),
10954      type = 'string',
10955      varname = 'p_wak',
10956    },
10957    {
10958      abbreviation = 'wbr',
10959      cb = 'did_set_winbar',
10960      validation_cb = 'validate_statustabline_rulerformat',
10961      defaults = '',
10962      desc = [=[
10963        When non-empty, this option enables the window bar and determines its
10964        contents. The window bar is a bar that's shown at the top of every
10965        window with it enabled. The value of 'winbar' is evaluated like with
10966        'statusline'.
10967
10968        When changing something that is used in 'winbar' that does not trigger
10969        it to be updated, use |:redrawstatus|.
10970
10971        Floating windows do not use the global value of 'winbar'. The
10972        window-local value of 'winbar' must be set for a floating window to
10973        have a window bar.
10974
10975        This option cannot be set in a modeline when 'modelineexpr' is off.
10976      ]=],
10977      full_name = 'winbar',
10978      modelineexpr = true,
10979      redraw = { 'statuslines' },
10980      scope = { 'global', 'win' },
10981      short_desc = N_('custom format for the window bar'),
10982      type = 'string',
10983      varname = 'p_wbr',
10984    },
10985    {
10986      abbreviation = 'winbl',
10987      cb = 'did_set_winblend',
10988      defaults = 0,
10989      desc = [=[
10990        Enables pseudo-transparency for a floating window. Valid values are in
10991        the range of 0 for fully opaque window (disabled) to 100 for fully
10992        transparent background. Values between 0-30 are typically most useful.
10993
10994        UI-dependent. Works best with RGB colors. 'termguicolors'
10995      ]=],
10996      full_name = 'winblend',
10997      redraw = { 'current_window', 'highlight_only' },
10998      scope = { 'win' },
10999      short_desc = N_('Controls transparency level for floating windows'),
11000      type = 'number',
11001    },
11002    {
11003      full_name = 'winborder',
11004      scope = { 'global' },
11005      validation_cb = 'validate_border',
11006      defaults = { if_true = '' },
11007      schema = {
11008        set = { '', 'double', 'single', 'shadow', 'rounded', 'solid', 'bold', 'none' },
11009      },
11010      desc = [=[
11011        Defines the default border style of floating windows. The default value
11012        is empty, which is equivalent to "none". Valid values include:
11013        - "bold": Bold line box.
11014        - "double": Double-line box.
11015        - "none": No border.
11016        - "rounded": Like "single", but with rounded corners ("╭" etc.).
11017        - "shadow": Drop shadow effect, by blending with the background.
11018        - "single": Single-line box.
11019        - "solid": Adds padding by a single whitespace cell.
11020        - custom: comma-separated list of exactly 8 entries in clockwise
11021          order starting from topleft. Each entry may be a single char, a
11022          single space (filled with the background), or empty (no border on
11023          that side). Example: >lua
11024             vim.o.winborder = '+,-,+,|,+,-,+,|'
11025             vim.o.winborder = ',,, ,,,, '  -- left/right padding only
11026        <
11027      ]=],
11028      short_desc = N_('border of floating window'),
11029      type = 'string',
11030      list = 'onecomma',
11031      varname = 'p_winborder',
11032    },
11033    {
11034      abbreviation = 'wi',
11035      cb = 'did_set_window',
11036      defaults = {
11037        if_true = 0,
11038        doc = 'screen height - 1',
11039      },
11040      desc = [=[
11041        Window height used for |CTRL-F| and |CTRL-B| when there is only one
11042        window and the value is smaller than 'lines' minus one.  The screen
11043        will scroll 'window' minus two lines, with a minimum of one.
11044        When 'window' is equal to 'lines' minus one CTRL-F and CTRL-B scroll
11045        in a much smarter way, taking care of wrapping lines.
11046        When resizing the Vim window, and the value is smaller than 1 or more
11047        than or equal to 'lines' it will be set to 'lines' minus 1.
11048        Note: Do not confuse this with the height of the Vim window, use
11049        'lines' for that.
11050      ]=],
11051      full_name = 'window',
11052      scope = { 'global' },
11053      short_desc = N_('nr of lines to scroll for CTRL-F and CTRL-B'),
11054      type = 'number',
11055      varname = 'p_window',
11056    },
11057    {
11058      abbreviation = 'wfb',
11059      defaults = false,
11060      desc = [=[
11061        If enabled, the window and the buffer it is displaying are paired.
11062        For example, attempting to change the buffer with |:edit| will fail.
11063        Other commands which change a window's buffer such as |:cnext| will
11064        also skip any window with 'winfixbuf' enabled.  However if an Ex
11065        command has a "!" modifier, it can force switching buffers.
11066      ]=],
11067      full_name = 'winfixbuf',
11068      scope = { 'win' },
11069      short_desc = N_('pin a window to a specific buffer'),
11070      type = 'boolean',
11071    },
11072    {
11073      abbreviation = 'wfh',
11074      defaults = false,
11075      desc = [=[
11076        Keep the window height when windows are opened or closed and
11077        'equalalways' is set.  Also for |CTRL-W_=|.  Set by default for the
11078        |preview-window| and |quickfix-window|.
11079        The height may be changed anyway when running out of room.
11080      ]=],
11081      full_name = 'winfixheight',
11082      redraw = { 'statuslines' },
11083      scope = { 'win' },
11084      short_desc = N_('keep window height when opening/closing windows'),
11085      type = 'boolean',
11086    },
11087    {
11088      abbreviation = 'wfw',
11089      defaults = false,
11090      desc = [=[
11091        Keep the window width when windows are opened or closed and
11092        'equalalways' is set.  Also for |CTRL-W_=|.
11093        The width may be changed anyway when running out of room.
11094      ]=],
11095      full_name = 'winfixwidth',
11096      redraw = { 'statuslines' },
11097      scope = { 'win' },
11098      short_desc = N_('keep window width when opening/closing windows'),
11099      type = 'boolean',
11100    },
11101    {
11102      abbreviation = 'wh',
11103      cb = 'did_set_winheight',
11104      defaults = 1,
11105      desc = [=[
11106        Minimal number of lines for the current window.  This is not a hard
11107        minimum, Vim will use fewer lines if there is not enough room.  If the
11108        focus goes to a window that is smaller, its size is increased, at the
11109        cost of the height of other windows.
11110        Set 'winheight' to a small number for normal editing.
11111        Set it to 999 to make the current window fill most of the screen.
11112        Other windows will be only 'winminheight' high.  This has the drawback
11113        that ":all" will create only two windows.  To avoid "vim -o 1 2 3 4"
11114        to create only two windows, set the option after startup is done,
11115        using the |VimEnter| event: >vim
11116        	au VimEnter * set winheight=999
11117        <	Minimum value is 1.
11118        The height is not adjusted after one of the commands that change the
11119        height of the current window.
11120        'winheight' applies to the current window.  Use 'winminheight' to set
11121        the minimal height for other windows.
11122      ]=],
11123      full_name = 'winheight',
11124      scope = { 'global' },
11125      short_desc = N_('minimum number of lines for the current window'),
11126      tags = { 'E591' },
11127      type = 'number',
11128      varname = 'p_wh',
11129    },
11130    {
11131      abbreviation = 'winhl',
11132      cb = 'did_set_winhighlight',
11133      defaults = '',
11134      deny_duplicates = true,
11135      desc = [=[
11136        Window-local highlights.  Comma-delimited list of highlight
11137        |group-name| pairs "{hl-from}:{hl-to},..." where each {hl-from} is
11138        a |highlight-groups| item to be overridden by {hl-to} group in
11139        the window.
11140
11141        Note: highlight namespaces take precedence over 'winhighlight'.
11142        See |nvim_win_set_hl_ns()| and |nvim_set_hl()|.
11143
11144        Highlights of vertical separators are determined by the window to the
11145        left of the separator.  The 'tabline' highlight of a tabpage is
11146        decided by the last-focused window of the tabpage.  Highlights of
11147        the popupmenu are determined by the current window.  Highlights in the
11148        message area cannot be overridden.
11149
11150        Example: show a different color for non-current windows: >vim
11151        	set winhighlight=Normal:MyNormal,NormalNC:MyNormalNC
11152        <
11153      ]=],
11154      expand_cb = 'expand_set_winhighlight',
11155      full_name = 'winhighlight',
11156      list = 'onecommacolon',
11157      redraw = { 'current_window', 'highlight_only' },
11158      scope = { 'win' },
11159      short_desc = N_('Setup window-local highlights'),
11160      type = 'string',
11161    },
11162    {
11163      abbreviation = 'wmh',
11164      cb = 'did_set_winminheight',
11165      defaults = 1,
11166      desc = [=[
11167        The minimal height of a window, when it's not the current window.
11168        This is a hard minimum, windows will never become smaller.
11169        When set to zero, windows may be "squashed" to zero lines (i.e. just a
11170        status bar) if necessary.  They will return to at least one line when
11171        they become active (since the cursor has to have somewhere to go.)
11172        Use 'winheight' to set the minimal height of the current window.
11173        This option is only checked when making a window smaller.  Don't use a
11174        large number, it will cause errors when opening more than a few
11175        windows.  A value of 0 to 3 is reasonable.
11176      ]=],
11177      full_name = 'winminheight',
11178      scope = { 'global' },
11179      short_desc = N_('minimum number of lines for any window'),
11180      type = 'number',
11181      varname = 'p_wmh',
11182    },
11183    {
11184      abbreviation = 'wmw',
11185      cb = 'did_set_winminwidth',
11186      defaults = 1,
11187      desc = [=[
11188        The minimal width of a window, when it's not the current window.
11189        This is a hard minimum, windows will never become smaller.
11190        When set to zero, windows may be "squashed" to zero columns (i.e. just
11191        a vertical separator) if necessary.  They will return to at least one
11192        line when they become active (since the cursor has to have somewhere
11193        to go.)
11194        Use 'winwidth' to set the minimal width of the current window.
11195        This option is only checked when making a window smaller.  Don't use a
11196        large number, it will cause errors when opening more than a few
11197        windows.  A value of 0 to 12 is reasonable.
11198      ]=],
11199      full_name = 'winminwidth',
11200      scope = { 'global' },
11201      short_desc = N_('minimal number of columns for any window'),
11202      type = 'number',
11203      varname = 'p_wmw',
11204    },
11205    {
11206      abbreviation = 'wp',
11207      defaults = false,
11208      desc = [=[
11209        If enabled, the window is pinned and will not be closed by |:only|
11210        and |:fclose|. Only commands specifically targeting the window can
11211        close it.
11212      ]=],
11213      full_name = 'winpinned',
11214      scope = { 'win' },
11215      short_desc = N_('prevent closing window with :only and :fclose'),
11216      type = 'boolean',
11217    },
11218    {
11219      abbreviation = 'wiw',
11220      cb = 'did_set_winwidth',
11221      defaults = 20,
11222      desc = [=[
11223        Minimal number of columns for the current window.  This is not a hard
11224        minimum, Vim will use fewer columns if there is not enough room.  If
11225        the current window is smaller, its size is increased, at the cost of
11226        the width of other windows.  Set it to 999 to make the current window
11227        always fill the screen.  Set it to a small number for normal editing.
11228        The width is not adjusted after one of the commands to change the
11229        width of the current window.
11230        'winwidth' applies to the current window.  Use 'winminwidth' to set
11231        the minimal width for other windows.
11232      ]=],
11233      full_name = 'winwidth',
11234      scope = { 'global' },
11235      short_desc = N_('minimal number of columns for current window'),
11236      tags = { 'E592' },
11237      type = 'number',
11238      varname = 'p_wiw',
11239    },
11240    {
11241      cb = 'did_set_wrap',
11242      defaults = true,
11243      desc = [=[
11244        This option changes how text is displayed.  It doesn't change the text
11245        in the buffer, see 'textwidth' for that.
11246        When on, lines longer than the width of the window will wrap and
11247        displaying continues on the next line.  When off lines will not wrap
11248        and only part of long lines will be displayed.  When the cursor is
11249        moved to a part that is not shown, the screen will scroll
11250        horizontally.
11251        The line will be broken in the middle of a word if necessary.  See
11252        'linebreak' to get the break at a word boundary.
11253        To make scrolling horizontally a bit more useful, try this: >vim
11254        	set sidescroll=5
11255        	set listchars+=precedes:<,extends:>
11256        <	See 'sidescroll', 'listchars' and |wrap-off|.
11257        This option can't be set from a |modeline| when the 'diff' option is
11258        on.
11259        If 'nowrap' was set from a |modeline| or in the |sandbox|, '>' is used
11260        as the |lcs-extends| character regardless of the value of the 'list'
11261        and 'listchars' options.  This is to prevent malicious code outside
11262        the viewport from going unnoticed.  Use `:setlocal nowrap` manually
11263        afterwards to disable this behavior.
11264      ]=],
11265      full_name = 'wrap',
11266      redraw = { 'current_window' },
11267      scope = { 'win' },
11268      short_desc = N_('lines wrap and continue on the next line'),
11269      type = 'boolean',
11270    },
11271    {
11272      abbreviation = 'wm',
11273      defaults = 0,
11274      desc = [=[
11275        Number of characters from the right window border where wrapping
11276        starts.  When typing text beyond this limit, an <EOL> will be inserted
11277        and inserting continues on the next line.
11278        Options that add a margin, such as 'number' and 'foldcolumn', cause
11279        the text width to be further reduced.
11280        When 'textwidth' is non-zero, this option is not used.
11281        See also 'formatoptions' and |ins-textwidth|.
11282      ]=],
11283      full_name = 'wrapmargin',
11284      scope = { 'buf' },
11285      short_desc = N_('chars from the right where wrapping starts'),
11286      type = 'number',
11287      varname = 'p_wm',
11288    },
11289    {
11290      abbreviation = 'ws',
11291      defaults = true,
11292      desc = [=[
11293        Searches wrap around the end of the file.  Also applies to |]s| and
11294        |[s|, searching for spelling mistakes.
11295      ]=],
11296      full_name = 'wrapscan',
11297      scope = { 'global' },
11298      short_desc = N_('searches wrap around the end of the file'),
11299      tags = { 'E384', 'E385' },
11300      type = 'boolean',
11301      varname = 'p_ws',
11302    },
11303    {
11304      defaults = true,
11305      desc = [=[
11306        Allows writing files.  When not set, writing a file is not allowed.
11307        Can be used for a view-only mode, where modifications to the text are
11308        still allowed.  Can be reset with the |-m| or |-M| command line
11309        argument.  Filtering text is still possible, even though this requires
11310        writing a temporary file.
11311      ]=],
11312      full_name = 'write',
11313      scope = { 'global' },
11314      short_desc = N_('to a file is allowed'),
11315      type = 'boolean',
11316      varname = 'p_write',
11317    },
11318    {
11319      abbreviation = 'wa',
11320      defaults = false,
11321      desc = [=[
11322        Allows writing to any file with no need for "!" override.
11323      ]=],
11324      full_name = 'writeany',
11325      scope = { 'global' },
11326      short_desc = N_('write to file with no need for "!" override'),
11327      type = 'boolean',
11328      varname = 'p_wa',
11329    },
11330    {
11331      abbreviation = 'wb',
11332      defaults = true,
11333      desc = [=[
11334        Make a backup before overwriting a file.  The backup is removed after
11335        the file was successfully written, unless the 'backup' option is
11336        also on.
11337        WARNING: Switching this option off means that when Vim fails to write
11338        your buffer correctly and then, for whatever reason, Vim exits, you
11339        lose both the original file and what you were writing.  Only reset
11340        this option if your file system is almost full and it makes the write
11341        fail (and make sure not to exit Vim until the write was successful).
11342        See |backup-table| for another explanation.
11343        When the 'backupskip' pattern matches, a backup is not made anyway.
11344        Depending on 'backupcopy' the backup is a new file or the original
11345        file renamed (and a new file is written).
11346      ]=],
11347      full_name = 'writebackup',
11348      scope = { 'global' },
11349      short_desc = N_('make a backup before overwriting a file'),
11350      type = 'boolean',
11351      varname = 'p_wb',
11352    },
11353    {
11354      abbreviation = 'wd',
11355      defaults = 0,
11356      desc = [=[
11357        Only takes effect together with 'redrawdebug'.
11358        The number of milliseconds to wait after each line or each flush
11359      ]=],
11360      full_name = 'writedelay',
11361      scope = { 'global' },
11362      short_desc = N_('delay this many msec for each char (for debug)'),
11363      type = 'number',
11364      varname = 'p_wd',
11365    },
11366  },
11367}
11368
11369--- Ordered completion values of a schema: `flags` and `enum` tokens as-is, `dict` keys as "key:"
11370--- (or bare for a flag key). Empty for `chars` (e.g. 'listchars') and `flagchars` (e.g.
11371--- 'formatoptions'), which self-expand. Shared with gen_options.lua.
11372--- @param schema vim.option_schema
11373--- @return string[]
11374local function schema_values(schema)
11375  local values = {} --- @type string[]
11376  for _, f in ipairs(schema.flags or {}) do
11377    values[#values + 1] = type(f) == 'string' and f or f[1]
11378  end
11379  for _, e in ipairs(schema.enum or schema.set or {}) do
11380    values[#values + 1] = e
11381  end
11382  for _, k in ipairs(schema.dict or {}) do
11383    values[#values + 1] = type(k) == 'string' and k or (k[1] .. ':') -- bare flag / typed "key:"
11384  end
11385  -- flagchars and chars self-expand: no completion values.
11386  return values
11387end
11388options.schema_values = schema_values
11389
11390--- @param o vim.option_meta
11391local function preprocess(o)
11392  -- Options with a fixed set of string values get generic completion unless they define their own.
11393  -- char/chars and char flags expand themselves.
11394  if o.schema and #schema_values(o.schema) > 0 then
11395    o.expand_cb = o.expand_cb or 'expand_set_str_generic'
11396  end
11397  -- Options with derived flags get a generic did_set callback unless they define their own.
11398  if o.flags_varname then
11399    o.cb = o.cb or 'did_set_str_generic'
11400  end
11401
11402  if type(o.alias) == 'string' then
11403    o.alias = {
11404      o.alias --[[@as string]],
11405    }
11406  end
11407
11408  if type(o.defaults) ~= 'table' then
11409    o.defaults = {
11410      if_true = o.defaults --[[@as any]],
11411    }
11412  end
11413end
11414
11415for _, o in ipairs(options.options) do
11416  preprocess(o)
11417end
11418
11419return options