blob: 6ae07fd6577765a7a0e363982e80b8c117aeec30 [file] [log] [blame]
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001/* vi:set ts=8 sts=4 sw=4 noet:
2 *
3 * VIM - Vi IMproved by Bram Moolenaar
4 *
5 * Do ":help uganda" in Vim to read copying and usage conditions.
6 * Do ":help credits" in Vim to see a list of people who contributed.
7 */
8
9/*
10 * optiondefs.h: option definitions
11 */
12
13// The options that are local to a window or buffer have "indir" set to one of
14// these values. Special values:
15// PV_NONE: global option.
16// PV_WIN is added: window-local option
17// PV_BUF is added: buffer-local option
18// PV_BOTH is added: global option which also has a local value.
19#define PV_BOTH 0x1000
20#define PV_WIN 0x2000
21#define PV_BUF 0x4000
22#define PV_MASK 0x0fff
23#define OPT_WIN(x) (idopt_T)(PV_WIN + (int)(x))
24#define OPT_BUF(x) (idopt_T)(PV_BUF + (int)(x))
25#define OPT_BOTH(x) (idopt_T)(PV_BOTH + (int)(x))
26
27// Definition of the PV_ values for buffer-local options.
28// The BV_ values are defined in option.h.
29#define PV_AI OPT_BUF(BV_AI)
30#define PV_AR OPT_BOTH(OPT_BUF(BV_AR))
31#define PV_BKC OPT_BOTH(OPT_BUF(BV_BKC))
32#define PV_BH OPT_BUF(BV_BH)
33#define PV_BT OPT_BUF(BV_BT)
34#ifdef FEAT_QUICKFIX
35# define PV_EFM OPT_BOTH(OPT_BUF(BV_EFM))
36# define PV_GP OPT_BOTH(OPT_BUF(BV_GP))
37# define PV_MP OPT_BOTH(OPT_BUF(BV_MP))
38#endif
39#define PV_BIN OPT_BUF(BV_BIN)
40#define PV_BL OPT_BUF(BV_BL)
41#define PV_BOMB OPT_BUF(BV_BOMB)
42#define PV_CI OPT_BUF(BV_CI)
Bram Moolenaar8e145b82022-05-21 20:17:31 +010043#define PV_CIN OPT_BUF(BV_CIN)
Bram Moolenaar49846fb2022-10-15 16:05:33 +010044#define PV_CINK OPT_BUF(BV_CINK)
45#define PV_CINO OPT_BUF(BV_CINO)
Bram Moolenaar8e145b82022-05-21 20:17:31 +010046#define PV_CINSD OPT_BUF(BV_CINSD)
Bram Moolenaar49846fb2022-10-15 16:05:33 +010047#define PV_CINW OPT_BUF(BV_CINW)
Bram Moolenaar0eddca42019-09-12 22:26:43 +020048#define PV_CM OPT_BOTH(OPT_BUF(BV_CM))
49#ifdef FEAT_FOLDING
50# define PV_CMS OPT_BUF(BV_CMS)
51#endif
Bram Moolenaar8c96af92019-09-28 19:05:57 +020052#define PV_COM OPT_BUF(BV_COM)
Bram Moolenaar0eddca42019-09-12 22:26:43 +020053#define PV_CPT OPT_BUF(BV_CPT)
Bram Moolenaar49846fb2022-10-15 16:05:33 +010054#define PV_DICT OPT_BOTH(OPT_BUF(BV_DICT))
Bram Moolenaar0eddca42019-09-12 22:26:43 +020055#define PV_TSR OPT_BOTH(OPT_BUF(BV_TSR))
56#define PV_CSL OPT_BUF(BV_CSL)
57#ifdef FEAT_COMPL_FUNC
58# define PV_CFU OPT_BUF(BV_CFU)
59#endif
60#ifdef FEAT_FIND_ID
61# define PV_DEF OPT_BOTH(OPT_BUF(BV_DEF))
62# define PV_INC OPT_BOTH(OPT_BUF(BV_INC))
63#endif
Bram Moolenaarfb0cf232022-10-22 11:25:19 +010064#define PV_EOF OPT_BUF(BV_EOF)
Bram Moolenaar0eddca42019-09-12 22:26:43 +020065#define PV_EOL OPT_BUF(BV_EOL)
66#define PV_FIXEOL OPT_BUF(BV_FIXEOL)
67#define PV_EP OPT_BOTH(OPT_BUF(BV_EP))
68#define PV_ET OPT_BUF(BV_ET)
69#define PV_FENC OPT_BUF(BV_FENC)
70#if defined(FEAT_BEVAL) && defined(FEAT_EVAL)
71# define PV_BEXPR OPT_BOTH(OPT_BUF(BV_BEXPR))
72#endif
73#define PV_FP OPT_BOTH(OPT_BUF(BV_FP))
74#ifdef FEAT_EVAL
75# define PV_FEX OPT_BUF(BV_FEX)
76#endif
77#define PV_FF OPT_BUF(BV_FF)
78#define PV_FLP OPT_BUF(BV_FLP)
79#define PV_FO OPT_BUF(BV_FO)
80#define PV_FT OPT_BUF(BV_FT)
81#define PV_IMI OPT_BUF(BV_IMI)
82#define PV_IMS OPT_BUF(BV_IMS)
Bram Moolenaar8e145b82022-05-21 20:17:31 +010083#if defined(FEAT_EVAL)
Bram Moolenaar0eddca42019-09-12 22:26:43 +020084# define PV_INDE OPT_BUF(BV_INDE)
85# define PV_INDK OPT_BUF(BV_INDK)
86#endif
87#if defined(FEAT_FIND_ID) && defined(FEAT_EVAL)
88# define PV_INEX OPT_BUF(BV_INEX)
89#endif
90#define PV_INF OPT_BUF(BV_INF)
91#define PV_ISK OPT_BUF(BV_ISK)
92#ifdef FEAT_CRYPT
93# define PV_KEY OPT_BUF(BV_KEY)
94#endif
95#ifdef FEAT_KEYMAP
96# define PV_KMAP OPT_BUF(BV_KMAP)
97#endif
98#define PV_KP OPT_BOTH(OPT_BUF(BV_KP))
Bram Moolenaar49846fb2022-10-15 16:05:33 +010099#define PV_LISP OPT_BUF(BV_LISP)
100#define PV_LOP OPT_BUF(BV_LOP)
Bram Moolenaar8e145b82022-05-21 20:17:31 +0100101#define PV_LW OPT_BOTH(OPT_BUF(BV_LW))
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200102#define PV_MENC OPT_BOTH(OPT_BUF(BV_MENC))
103#define PV_MA OPT_BUF(BV_MA)
104#define PV_ML OPT_BUF(BV_ML)
105#define PV_MOD OPT_BUF(BV_MOD)
106#define PV_MPS OPT_BUF(BV_MPS)
107#define PV_NF OPT_BUF(BV_NF)
108#ifdef FEAT_COMPL_FUNC
109# define PV_OFU OPT_BUF(BV_OFU)
110#endif
111#define PV_PATH OPT_BOTH(OPT_BUF(BV_PATH))
112#define PV_PI OPT_BUF(BV_PI)
Bram Moolenaar88774872022-08-16 20:24:29 +0100113#define PV_QE OPT_BUF(BV_QE)
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200114#define PV_RO OPT_BUF(BV_RO)
Bram Moolenaar8e145b82022-05-21 20:17:31 +0100115#define PV_SI OPT_BUF(BV_SI)
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200116#define PV_SN OPT_BUF(BV_SN)
117#ifdef FEAT_SYN_HL
118# define PV_SMC OPT_BUF(BV_SMC)
119# define PV_SYN OPT_BUF(BV_SYN)
120#endif
121#ifdef FEAT_SPELL
122# define PV_SPC OPT_BUF(BV_SPC)
123# define PV_SPF OPT_BUF(BV_SPF)
124# define PV_SPL OPT_BUF(BV_SPL)
Bram Moolenaar362b44b2020-06-10 21:47:00 +0200125# define PV_SPO OPT_BUF(BV_SPO)
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200126#endif
127#define PV_STS OPT_BUF(BV_STS)
Bram Moolenaarf80f40a2022-08-25 16:02:23 +0100128#define PV_SUA OPT_BUF(BV_SUA)
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200129#define PV_SW OPT_BUF(BV_SW)
130#define PV_SWF OPT_BUF(BV_SWF)
131#ifdef FEAT_EVAL
132# define PV_TFU OPT_BUF(BV_TFU)
133#endif
Yegappan Lakshmanan160e9942021-10-16 15:41:29 +0100134#ifdef FEAT_COMPL_FUNC
Bram Moolenaarf4d8b762021-10-17 14:13:09 +0100135# define PV_TSRFU OPT_BOTH(OPT_BUF(BV_TSRFU))
Yegappan Lakshmanan160e9942021-10-16 15:41:29 +0100136#endif
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200137#define PV_TAGS OPT_BOTH(OPT_BUF(BV_TAGS))
138#define PV_TC OPT_BOTH(OPT_BUF(BV_TC))
139#define PV_TS OPT_BUF(BV_TS)
140#define PV_TW OPT_BUF(BV_TW)
141#define PV_TX OPT_BUF(BV_TX)
142#ifdef FEAT_PERSISTENT_UNDO
143# define PV_UDF OPT_BUF(BV_UDF)
144#endif
145#define PV_WM OPT_BUF(BV_WM)
146#ifdef FEAT_VARTABS
Bram Moolenaar49846fb2022-10-15 16:05:33 +0100147# define PV_VSTS OPT_BUF(BV_VSTS)
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200148# define PV_VTS OPT_BUF(BV_VTS)
149#endif
150
151// Definition of the PV_ values for window-local options.
152// The WV_ values are defined in option.h.
153#define PV_LIST OPT_WIN(WV_LIST)
154#ifdef FEAT_ARABIC
155# define PV_ARAB OPT_WIN(WV_ARAB)
156#endif
157#ifdef FEAT_LINEBREAK
158# define PV_BRI OPT_WIN(WV_BRI)
159# define PV_BRIOPT OPT_WIN(WV_BRIOPT)
160#endif
161# define PV_WCR OPT_WIN(WV_WCR)
162#ifdef FEAT_DIFF
163# define PV_DIFF OPT_WIN(WV_DIFF)
164#endif
165#ifdef FEAT_FOLDING
166# define PV_FDC OPT_WIN(WV_FDC)
167# define PV_FEN OPT_WIN(WV_FEN)
168# define PV_FDI OPT_WIN(WV_FDI)
169# define PV_FDL OPT_WIN(WV_FDL)
170# define PV_FDM OPT_WIN(WV_FDM)
171# define PV_FML OPT_WIN(WV_FML)
172# define PV_FDN OPT_WIN(WV_FDN)
173# ifdef FEAT_EVAL
174# define PV_FDE OPT_WIN(WV_FDE)
175# define PV_FDT OPT_WIN(WV_FDT)
176# endif
177# define PV_FMR OPT_WIN(WV_FMR)
178#endif
179#ifdef FEAT_LINEBREAK
180# define PV_LBR OPT_WIN(WV_LBR)
181#endif
Bram Moolenaareed9d462021-02-15 20:38:25 +0100182#define PV_LCS OPT_BOTH(OPT_WIN(WV_LCS))
Bram Moolenaar96ba25a2022-07-04 17:34:33 +0100183#define PV_FCS OPT_BOTH(OPT_WIN(WV_FCS))
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200184#define PV_NU OPT_WIN(WV_NU)
185#define PV_RNU OPT_WIN(WV_RNU)
zeertzjqe1833bf2022-01-15 10:52:16 +0000186#define PV_VE OPT_BOTH(OPT_WIN(WV_VE))
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200187#ifdef FEAT_LINEBREAK
188# define PV_NUW OPT_WIN(WV_NUW)
189#endif
190#if defined(FEAT_QUICKFIX)
191# define PV_PVW OPT_WIN(WV_PVW)
192#endif
193#ifdef FEAT_RIGHTLEFT
194# define PV_RL OPT_WIN(WV_RL)
195# define PV_RLC OPT_WIN(WV_RLC)
196#endif
197#define PV_SCBIND OPT_WIN(WV_SCBIND)
198#define PV_SCROLL OPT_WIN(WV_SCROLL)
Bram Moolenaarf6196f42022-10-02 21:29:55 +0100199#define PV_SMS OPT_WIN(WV_SMS)
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200200#define PV_SISO OPT_BOTH(OPT_WIN(WV_SISO))
201#define PV_SO OPT_BOTH(OPT_WIN(WV_SO))
202#ifdef FEAT_SPELL
203# define PV_SPELL OPT_WIN(WV_SPELL)
204#endif
205#ifdef FEAT_SYN_HL
206# define PV_CUC OPT_WIN(WV_CUC)
207# define PV_CUL OPT_WIN(WV_CUL)
208# define PV_CULOPT OPT_WIN(WV_CULOPT)
209# define PV_CC OPT_WIN(WV_CC)
210#endif
Bram Moolenaaree857022019-11-09 23:26:40 +0100211#ifdef FEAT_LINEBREAK
212# define PV_SBR OPT_BOTH(OPT_WIN(WV_SBR))
213#endif
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200214#ifdef FEAT_STL_OPT
215# define PV_STL OPT_BOTH(OPT_WIN(WV_STL))
216#endif
217#define PV_UL OPT_BOTH(OPT_BUF(BV_UL))
218# define PV_WFH OPT_WIN(WV_WFH)
219# define PV_WFW OPT_WIN(WV_WFW)
220#define PV_WRAP OPT_WIN(WV_WRAP)
221#define PV_CRBIND OPT_WIN(WV_CRBIND)
222#ifdef FEAT_CONCEAL
223# define PV_COCU OPT_WIN(WV_COCU)
224# define PV_COLE OPT_WIN(WV_COLE)
225#endif
226#ifdef FEAT_TERMINAL
227# define PV_TWK OPT_WIN(WV_TWK)
228# define PV_TWS OPT_WIN(WV_TWS)
229# define PV_TWSL OPT_BUF(BV_TWSL)
230#endif
231#ifdef FEAT_SIGNS
232# define PV_SCL OPT_WIN(WV_SCL)
233#endif
234
235// WV_ and BV_ values get typecasted to this for the "indir" field
236typedef enum
237{
238 PV_NONE = 0,
239 PV_MAXVAL = 0xffff // to avoid warnings for value out of range
240} idopt_T;
241
242// Options local to a window have a value local to a buffer and global to all
243// buffers. Indicate this by setting "var" to VAR_WIN.
244#define VAR_WIN ((char_u *)-1)
245
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200246// Saved values for when 'bin' is set.
247static int p_et_nobin;
248static int p_ml_nobin;
249static long p_tw_nobin;
250static long p_wm_nobin;
251
252// Saved values for when 'paste' is set
253static int p_ai_nopaste;
254static int p_et_nopaste;
255static long p_sts_nopaste;
256static long p_tw_nopaste;
257static long p_wm_nopaste;
258#ifdef FEAT_VARTABS
259static char_u *p_vsts_nopaste;
260#endif
261
262struct vimoption
263{
264 char *fullname; // full option name
265 char *shortname; // permissible abbreviation
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000266 long_u flags; // see in option.h
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200267 char_u *var; // global option: pointer to variable;
268 // window-local option: VAR_WIN;
269 // buffer-local option: global value
270 idopt_T indir; // global option: PV_NONE;
271 // local option: indirect option index
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000272 // callback function to invoke after an option is modified to validate and
273 // apply the new value.
274 opt_did_set_cb_T opt_did_set_cb;
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200275 char_u *def_val[2]; // default values for variable (vi and vim)
276#ifdef FEAT_EVAL
277 sctx_T script_ctx; // script context where the option was last set
278# define SCTX_INIT , {0, 0, 0, 1}
279#else
280# define SCTX_INIT
281#endif
282};
283
284#define VI_DEFAULT 0 // def_val[VI_DEFAULT] is Vi default value
285#define VIM_DEFAULT 1 // def_val[VIM_DEFAULT] is Vim default value
286
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200287#define ISK_LATIN1 (char_u *)"@,48-57,_,192-255"
288
289// 'isprint' for latin1 is also used for MS-Windows cp1252, where 0x80 is used
290// for the currency sign.
291#if defined(MSWIN)
292# define ISP_LATIN1 (char_u *)"@,~-255"
293#else
294# define ISP_LATIN1 (char_u *)"@,161-255"
295#endif
296
LemonBoya4399382022-04-09 21:04:08 +0100297# define HIGHLIGHT_INIT "8:SpecialKey,~:EndOfBuffer,@:NonText,d:Directory,e:ErrorMsg,i:IncSearch,l:Search,y:CurSearch,m:MoreMsg,M:ModeMsg,n:LineNr,a:LineNrAbove,b:LineNrBelow,N:CursorLineNr,G:CursorLineSign,O:CursorLineFold,r:Question,s:StatusLine,S:StatusLineNC,c:VertSplit,t:Title,v:Visual,V:VisualNOS,w:WarningMsg,W:WildMenu,f:Folded,F:FoldColumn,A:DiffAdd,C:DiffChange,D:DiffDelete,T:DiffText,>:SignColumn,-:Conceal,B:SpellBad,P:SpellCap,R:SpellRare,L:SpellLocal,+:Pmenu,=:PmenuSel,x:PmenuSbar,X:PmenuThumb,*:TabLine,#:TabLineSel,_:TabLineFill,!:CursorColumn,.:CursorLine,o:ColorColumn,q:QuickFixLine,z:StatusLineTerm,Z:StatusLineTermNC"
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200298
299// Default python version for pyx* commands
300#if defined(FEAT_PYTHON) && defined(FEAT_PYTHON3)
301# define DEFAULT_PYTHON_VER 0
302#elif defined(FEAT_PYTHON3)
303# define DEFAULT_PYTHON_VER 3
304#elif defined(FEAT_PYTHON)
305# define DEFAULT_PYTHON_VER 2
306#else
307# define DEFAULT_PYTHON_VER 0
308#endif
309
310// used for 'cinkeys' and 'indentkeys'
311#define INDENTKEYS_DEFAULT (char_u *)"0{,0},0),0],:,0#,!^F,o,O,e"
312
313// options[] is initialized here.
314// The order of the options MUST be alphabetic for ":set all" and findoption().
315// All option names MUST start with a lowercase letter (for findoption()).
316// Exception: "t_" options are at the end.
317// The options with a NULL variable are 'hidden': a set command for them is
318// ignored and they are not printed.
319static struct vimoption options[] =
320{
321 {"aleph", "al", P_NUM|P_VI_DEF|P_CURSWANT,
322#ifdef FEAT_RIGHTLEFT
323 (char_u *)&p_aleph, PV_NONE,
324#else
325 (char_u *)NULL, PV_NONE,
326#endif
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000327 NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200328 {
329#if defined(MSWIN) && !defined(FEAT_GUI_MSWIN)
330 (char_u *)128L,
331#else
332 (char_u *)224L,
333#endif
334 (char_u *)0L} SCTX_INIT},
335 {"antialias", "anti", P_BOOL|P_VI_DEF|P_VIM|P_RCLR,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000336 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200337 {(char_u *)FALSE, (char_u *)FALSE}
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200338 SCTX_INIT},
339 {"arabic", "arab", P_BOOL|P_VI_DEF|P_VIM|P_CURSWANT,
340#ifdef FEAT_ARABIC
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000341 (char_u *)VAR_WIN, PV_ARAB, did_set_arabic,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200342#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000343 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200344#endif
345 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
346 {"arabicshape", "arshape", P_BOOL|P_VI_DEF|P_VIM|P_RCLR,
347#ifdef FEAT_ARABIC
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000348 (char_u *)&p_arshape, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200349#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000350 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200351#endif
352 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
353 {"allowrevins", "ari", P_BOOL|P_VI_DEF|P_VIM,
354#ifdef FEAT_RIGHTLEFT
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000355 (char_u *)&p_ari, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200356#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000357 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200358#endif
359 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
360 {"altkeymap", "akm", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000361 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200362 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
363 {"ambiwidth", "ambw", P_STRING|P_VI_DEF|P_RCLR,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000364 (char_u *)&p_ambw, PV_NONE, did_set_ambiwidth,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200365 {(char_u *)"single", (char_u *)0L}
366 SCTX_INIT},
367 {"autochdir", "acd", P_BOOL|P_VI_DEF,
368#ifdef FEAT_AUTOCHDIR
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000369 (char_u *)&p_acd, PV_NONE, did_set_autochdir,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200370 {(char_u *)FALSE, (char_u *)0L}
371#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000372 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200373 {(char_u *)0L, (char_u *)0L}
374#endif
375 SCTX_INIT},
Bram Moolenaar8b9abfd2021-03-29 20:49:05 +0200376 {"autoshelldir", "asd", P_BOOL|P_VI_DEF,
377#ifdef FEAT_AUTOSHELLDIR
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000378 (char_u *)&p_asd, PV_NONE, NULL,
Bram Moolenaar8b9abfd2021-03-29 20:49:05 +0200379 {(char_u *)FALSE, (char_u *)0L}
380#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000381 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar8b9abfd2021-03-29 20:49:05 +0200382 {(char_u *)0L, (char_u *)0L}
383#endif
384 SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200385 {"autoindent", "ai", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000386 (char_u *)&p_ai, PV_AI, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200387 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
388 {"autoprint", "ap", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000389 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200390 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
391 {"autoread", "ar", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000392 (char_u *)&p_ar, PV_AR, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200393 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
394 {"autowrite", "aw", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000395 (char_u *)&p_aw, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200396 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
397 {"autowriteall","awa", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000398 (char_u *)&p_awa, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200399 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
400 {"background", "bg", P_STRING|P_VI_DEF|P_RCLR,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000401 (char_u *)&p_bg, PV_NONE, did_set_background,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200402 {
403#if (defined(MSWIN)) && !defined(FEAT_GUI)
404 (char_u *)"dark",
405#else
406 (char_u *)"light",
407#endif
408 (char_u *)0L} SCTX_INIT},
409 {"backspace", "bs", P_STRING|P_VI_DEF|P_VIM|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000410 (char_u *)&p_bs, PV_NONE, did_set_backspace,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200411 {(char_u *)"", (char_u *)0L} SCTX_INIT},
412 {"backup", "bk", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000413 (char_u *)&p_bk, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200414 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
415 {"backupcopy", "bkc", P_STRING|P_VIM|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000416 (char_u *)&p_bkc, PV_BKC, did_set_backupcopy,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200417#ifdef UNIX
418 {(char_u *)"yes", (char_u *)"auto"}
419#else
420 {(char_u *)"auto", (char_u *)"auto"}
421#endif
422 SCTX_INIT},
423 {"backupdir", "bdir", P_STRING|P_EXPAND|P_VI_DEF|P_ONECOMMA
424 |P_NODUP|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000425 (char_u *)&p_bdir, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200426 {(char_u *)DFLT_BDIR, (char_u *)0L} SCTX_INIT},
427 {"backupext", "bex", P_STRING|P_VI_DEF|P_NFNAME,
428 (char_u *)&p_bex, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000429 did_set_backupext_or_patchmode,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200430 {
431#ifdef VMS
432 (char_u *)"_",
433#else
434 (char_u *)"~",
435#endif
436 (char_u *)0L} SCTX_INIT},
437 {"backupskip", "bsk", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000438 (char_u *)&p_bsk, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200439 {(char_u *)"", (char_u *)0L}
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200440 SCTX_INIT},
441 {"balloondelay","bdlay",P_NUM|P_VI_DEF,
442#ifdef FEAT_BEVAL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000443 (char_u *)&p_bdlay, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200444 {(char_u *)600L, (char_u *)0L}
445#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000446 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200447 {(char_u *)0L, (char_u *)0L}
448#endif
449 SCTX_INIT},
450 {"ballooneval", "beval",P_BOOL|P_VI_DEF|P_NO_MKRC,
451#ifdef FEAT_BEVAL_GUI
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000452 (char_u *)&p_beval, PV_NONE, did_set_ballooneval,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200453 {(char_u *)FALSE, (char_u *)0L}
454#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000455 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200456 {(char_u *)0L, (char_u *)0L}
457#endif
458 SCTX_INIT},
459 {"balloonevalterm", "bevalterm",P_BOOL|P_VI_DEF|P_NO_MKRC,
460#ifdef FEAT_BEVAL_TERM
461 (char_u *)&p_bevalterm, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000462 did_set_balloonevalterm,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200463 {(char_u *)FALSE, (char_u *)0L}
464#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000465 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200466 {(char_u *)0L, (char_u *)0L}
467#endif
468 SCTX_INIT},
469 {"balloonexpr", "bexpr", P_STRING|P_ALLOCED|P_VI_DEF|P_VIM|P_MLE,
470#if defined(FEAT_BEVAL) && defined(FEAT_EVAL)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000471 (char_u *)&p_bexpr, PV_BEXPR, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200472 {(char_u *)"", (char_u *)0L}
473#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000474 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200475 {(char_u *)0L, (char_u *)0L}
476#endif
477 SCTX_INIT},
478 {"beautify", "bf", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000479 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200480 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
481 {"belloff", "bo", P_STRING|P_VI_DEF|P_COMMA|P_NODUP,
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +0000482 (char_u *)&p_bo, PV_NONE, did_set_belloff,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200483 {(char_u *)"", (char_u *)0L} SCTX_INIT},
484 {"binary", "bin", P_BOOL|P_VI_DEF|P_RSTAT,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000485 (char_u *)&p_bin, PV_BIN, did_set_binary,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200486 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
487 {"bioskey", "biosk",P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000488 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200489 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
490 {"bomb", NULL, P_BOOL|P_NO_MKRC|P_VI_DEF|P_RSTAT,
491 (char_u *)&p_bomb, PV_BOMB,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000492 did_set_eof_eol_fixeol_bomb,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200493 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
494 {"breakat", "brk", P_STRING|P_VI_DEF|P_RALL|P_FLAGLIST,
495#ifdef FEAT_LINEBREAK
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000496 (char_u *)&p_breakat, PV_NONE, did_set_breakat,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200497 {(char_u *)" \t!@*-+;:,./?", (char_u *)0L}
498#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000499 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200500 {(char_u *)0L, (char_u *)0L}
501#endif
502 SCTX_INIT},
503 {"breakindent", "bri", P_BOOL|P_VI_DEF|P_VIM|P_RWIN,
504#ifdef FEAT_LINEBREAK
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000505 (char_u *)VAR_WIN, PV_BRI, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200506 {(char_u *)FALSE, (char_u *)0L}
507#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000508 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200509 {(char_u *)0L, (char_u *)0L}
510#endif
511 SCTX_INIT},
512 {"breakindentopt", "briopt", P_STRING|P_ALLOCED|P_VI_DEF|P_RBUF
513 |P_ONECOMMA|P_NODUP,
514#ifdef FEAT_LINEBREAK
515 (char_u *)VAR_WIN, PV_BRIOPT,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000516 did_set_breakindentopt,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200517 {(char_u *)"", (char_u *)NULL}
518#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000519 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200520 {(char_u *)"", (char_u *)NULL}
521#endif
522 SCTX_INIT},
523 {"browsedir", "bsdir",P_STRING|P_VI_DEF,
524#ifdef FEAT_BROWSE
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000525 (char_u *)&p_bsdir, PV_NONE, did_set_browsedir,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200526 {(char_u *)"last", (char_u *)0L}
527#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000528 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200529 {(char_u *)0L, (char_u *)0L}
530#endif
531 SCTX_INIT},
532 {"bufhidden", "bh", P_STRING|P_ALLOCED|P_VI_DEF|P_NOGLOB,
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +0000533 (char_u *)&p_bh, PV_BH, did_set_bufhidden,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200534 {(char_u *)"", (char_u *)0L}
535 SCTX_INIT},
536 {"buflisted", "bl", P_BOOL|P_VI_DEF|P_NOGLOB,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000537 (char_u *)&p_bl, PV_BL, did_set_buflisted,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200538 {(char_u *)1L, (char_u *)0L}
539 SCTX_INIT},
540 {"buftype", "bt", P_STRING|P_ALLOCED|P_VI_DEF|P_NOGLOB,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000541 (char_u *)&p_bt, PV_BT, did_set_buftype,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200542 {(char_u *)"", (char_u *)0L}
543 SCTX_INIT},
544 {"casemap", "cmp", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +0000545 (char_u *)&p_cmp, PV_NONE, did_set_casemap,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200546 {(char_u *)"internal,keepascii", (char_u *)0L}
547 SCTX_INIT},
Bakudankun29f3a452021-12-11 12:28:08 +0000548 {"cdhome", "cdh", P_BOOL|P_VI_DEF|P_VIM|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000549 (char_u *)&p_cdh, PV_NONE, NULL,
Bakudankun29f3a452021-12-11 12:28:08 +0000550 {(char_u *)FALSE, (char_u *)0L}
551 SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200552 {"cdpath", "cd", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE|P_COMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000553 (char_u *)&p_cdpath, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200554 {(char_u *)",,", (char_u *)0L}
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200555 SCTX_INIT},
556 {"cedit", NULL, P_STRING,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000557 (char_u *)&p_cedit, PV_NONE, did_set_cedit,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200558 {(char_u *)"", (char_u *)CTRL_F_STR}
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200559 SCTX_INIT},
560 {"charconvert", "ccv", P_STRING|P_VI_DEF|P_SECURE,
561#if defined(FEAT_EVAL)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000562 (char_u *)&p_ccv, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200563 {(char_u *)"", (char_u *)0L}
564#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000565 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200566 {(char_u *)0L, (char_u *)0L}
567#endif
568 SCTX_INIT},
569 {"cindent", "cin", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000570 (char_u *)&p_cin, PV_CIN, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200571 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
572 {"cinkeys", "cink", P_STRING|P_ALLOCED|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000573 (char_u *)&p_cink, PV_CINK, NULL,
Bram Moolenaar8e145b82022-05-21 20:17:31 +0100574 {INDENTKEYS_DEFAULT, (char_u *)0L} SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200575 {"cinoptions", "cino", P_STRING|P_ALLOCED|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000576 (char_u *)&p_cino, PV_CINO, did_set_cinoptions,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200577 {(char_u *)"", (char_u *)0L} SCTX_INIT},
Tom Praschan3506cf32022-04-07 12:39:08 +0100578 {"cinscopedecls", "cinsd", P_STRING|P_ALLOCED|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000579 (char_u *)&p_cinsd, PV_CINSD, NULL,
Tom Praschan3506cf32022-04-07 12:39:08 +0100580 {(char_u *)"public,protected,private", (char_u *)0L}
Tom Praschan3506cf32022-04-07 12:39:08 +0100581 SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200582 {"cinwords", "cinw", P_STRING|P_ALLOCED|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000583 (char_u *)&p_cinw, PV_CINW, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200584 {(char_u *)"if,else,while,do,for,switch",
585 (char_u *)0L}
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200586 SCTX_INIT},
587 {"clipboard", "cb", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
588#ifdef FEAT_CLIPBOARD
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000589 (char_u *)&p_cb, PV_NONE, did_set_clipboard,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200590# ifdef FEAT_XCLIPBOARD
591 {(char_u *)"autoselect,exclude:cons\\|linux",
592 (char_u *)0L}
593# else
594 {(char_u *)"", (char_u *)0L}
595# endif
596#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000597 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200598 {(char_u *)"", (char_u *)0L}
599#endif
600 SCTX_INIT},
601 {"cmdheight", "ch", P_NUM|P_VI_DEF|P_RALL,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000602 (char_u *)&p_ch, PV_NONE, did_set_cmdheight,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200603 {(char_u *)1L, (char_u *)0L} SCTX_INIT},
604 {"cmdwinheight", "cwh", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000605 (char_u *)&p_cwh, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200606 {(char_u *)7L, (char_u *)0L} SCTX_INIT},
607 {"colorcolumn", "cc", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP|P_RWIN,
608#ifdef FEAT_SYN_HL
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +0000609 (char_u *)VAR_WIN, PV_CC, did_set_colorcolumn,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200610#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000611 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200612#endif
613 {(char_u *)"", (char_u *)0L} SCTX_INIT},
614 {"columns", "co", P_NUM|P_NODEFAULT|P_NO_MKRC|P_VI_DEF|P_RCLR,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000615 (char_u *)&Columns, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200616 {(char_u *)80L, (char_u *)0L} SCTX_INIT},
617 {"comments", "com", P_STRING|P_ALLOCED|P_VI_DEF|P_ONECOMMA
618 |P_NODUP|P_CURSWANT,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000619 (char_u *)&p_com, PV_COM, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200620 {(char_u *)"s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-",
621 (char_u *)0L}
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200622 SCTX_INIT},
623 {"commentstring", "cms", P_STRING|P_ALLOCED|P_VI_DEF|P_CURSWANT,
624#ifdef FEAT_FOLDING
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000625 (char_u *)&p_cms, PV_CMS, did_set_commentstring,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200626 {(char_u *)"/*%s*/", (char_u *)0L}
627#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000628 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200629 {(char_u *)0L, (char_u *)0L}
630#endif
631 SCTX_INIT},
632 // P_PRI_MKRC isn't needed here, optval_default()
633 // always returns TRUE for 'compatible'
634 {"compatible", "cp", P_BOOL|P_RALL,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000635 (char_u *)&p_cp, PV_NONE, did_set_compatible,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200636 {(char_u *)TRUE, (char_u *)FALSE} SCTX_INIT},
637 {"complete", "cpt", P_STRING|P_ALLOCED|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000638 (char_u *)&p_cpt, PV_CPT, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200639 {(char_u *)".,w,b,u,t,i", (char_u *)0L}
640 SCTX_INIT},
641 {"concealcursor","cocu", P_STRING|P_ALLOCED|P_RWIN|P_VI_DEF,
642#ifdef FEAT_CONCEAL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000643 (char_u *)VAR_WIN, PV_COCU, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200644 {(char_u *)"", (char_u *)NULL}
645#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000646 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200647 {(char_u *)NULL, (char_u *)0L}
648#endif
649 SCTX_INIT},
650 {"conceallevel","cole", P_NUM|P_RWIN|P_VI_DEF,
651#ifdef FEAT_CONCEAL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000652 (char_u *)VAR_WIN, PV_COLE, did_set_conceallevel,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200653#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000654 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200655#endif
656 {(char_u *)0L, (char_u *)0L}
657 SCTX_INIT},
Yegappan Lakshmanan64095532021-12-06 11:03:55 +0000658 {"completefunc", "cfu", P_STRING|P_ALLOCED|P_VI_DEF|P_SECURE|P_FUNC,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200659#ifdef FEAT_COMPL_FUNC
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000660 (char_u *)&p_cfu, PV_CFU, did_set_completefunc,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200661 {(char_u *)"", (char_u *)0L}
662#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000663 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200664 {(char_u *)0L, (char_u *)0L}
665#endif
666 SCTX_INIT},
667 {"completeopt", "cot", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000668 (char_u *)&p_cot, PV_NONE, did_set_completeopt,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200669 {(char_u *)"menu,preview", (char_u *)0L}
670 SCTX_INIT},
671 {"completepopup", "cpp", P_STRING|P_VI_DEF|P_COMMA|P_NODUP,
Bram Moolenaar05ad5ff2019-11-30 22:48:27 +0100672#if defined(FEAT_PROP_POPUP) && defined(FEAT_QUICKFIX)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000673 (char_u *)&p_cpp, PV_NONE, did_set_completepopup,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200674 {(char_u *)"", (char_u *)0L}
675#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000676 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200677 {(char_u *)NULL, (char_u *)0L}
678#endif
679 SCTX_INIT},
680 {"completeslash", "csl", P_STRING|P_VI_DEF|P_VIM,
681#if defined(BACKSLASH_IN_FILENAME)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000682 (char_u *)&p_csl, PV_CSL, did_set_completeslash,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200683 {(char_u *)"", (char_u *)0L}
684#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000685 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200686 {(char_u *)0L, (char_u *)0L}
687#endif
688 SCTX_INIT},
689 {"confirm", "cf", P_BOOL|P_VI_DEF,
690#if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000691 (char_u *)&p_confirm, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200692#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000693 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200694#endif
695 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
696 {"conskey", "consk",P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000697 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200698 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
699 {"copyindent", "ci", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000700 (char_u *)&p_ci, PV_CI, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200701 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
702 {"cpoptions", "cpo", P_STRING|P_VIM|P_RALL|P_FLAGLIST,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000703 (char_u *)&p_cpo, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200704 {(char_u *)CPO_VI, (char_u *)CPO_VIM}
705 SCTX_INIT},
706 {"cryptmethod", "cm", P_STRING|P_ALLOCED|P_VI_DEF,
707#ifdef FEAT_CRYPT
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000708 (char_u *)&p_cm, PV_CM, did_set_cryptmethod,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200709 {(char_u *)"blowfish2", (char_u *)0L}
710#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000711 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200712 {(char_u *)0L, (char_u *)0L}
713#endif
714 SCTX_INIT},
715 {"cscopepathcomp", "cspc", P_NUM|P_VI_DEF|P_VIM,
716#ifdef FEAT_CSCOPE
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000717 (char_u *)&p_cspc, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200718#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000719 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200720#endif
721 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
722 {"cscopeprg", "csprg", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
723#ifdef FEAT_CSCOPE
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000724 (char_u *)&p_csprg, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200725 {(char_u *)"cscope", (char_u *)0L}
726#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000727 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200728 {(char_u *)0L, (char_u *)0L}
729#endif
730 SCTX_INIT},
731 {"cscopequickfix", "csqf", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
732#if defined(FEAT_CSCOPE) && defined(FEAT_QUICKFIX)
733 (char_u *)&p_csqf, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000734 did_set_cscopequickfix,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200735 {(char_u *)"", (char_u *)0L}
736#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000737 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200738 {(char_u *)0L, (char_u *)0L}
739#endif
740 SCTX_INIT},
741 {"cscoperelative", "csre", P_BOOL|P_VI_DEF|P_VIM,
742#ifdef FEAT_CSCOPE
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000743 (char_u *)&p_csre, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200744#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000745 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200746#endif
747 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
748 {"cscopetag", "cst", P_BOOL|P_VI_DEF|P_VIM,
749#ifdef FEAT_CSCOPE
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000750 (char_u *)&p_cst, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200751#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000752 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200753#endif
754 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
755 {"cscopetagorder", "csto", P_NUM|P_VI_DEF|P_VIM,
756#ifdef FEAT_CSCOPE
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000757 (char_u *)&p_csto, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200758#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000759 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200760#endif
761 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
762 {"cscopeverbose", "csverb", P_BOOL|P_VI_DEF|P_VIM,
763#ifdef FEAT_CSCOPE
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000764 (char_u *)&p_csverbose, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200765#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000766 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200767#endif
768 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
769 {"cursorbind", "crb", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000770 (char_u *)VAR_WIN, PV_CRBIND, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200771 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
772 {"cursorcolumn", "cuc", P_BOOL|P_VI_DEF|P_RWINONLY,
773#ifdef FEAT_SYN_HL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000774 (char_u *)VAR_WIN, PV_CUC, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200775#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000776 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200777#endif
778 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
779 {"cursorline", "cul", P_BOOL|P_VI_DEF|P_RWINONLY,
780#ifdef FEAT_SYN_HL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000781 (char_u *)VAR_WIN, PV_CUL, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200782#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000783 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200784#endif
785 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
Bram Moolenaar017ba072019-09-14 21:01:23 +0200786 {"cursorlineopt", "culopt", P_STRING|P_VI_DEF|P_RWIN|P_ONECOMMA|P_NODUP,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200787#ifdef FEAT_SYN_HL
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +0000788 (char_u *)VAR_WIN, PV_CULOPT,
789 did_set_cursorlineopt,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200790#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000791 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200792#endif
793 {(char_u *)"both", (char_u *)0L} SCTX_INIT},
794 {"debug", NULL, P_STRING|P_VI_DEF,
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +0000795 (char_u *)&p_debug, PV_NONE, did_set_debug,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200796 {(char_u *)"", (char_u *)0L} SCTX_INIT},
797 {"define", "def", P_STRING|P_ALLOCED|P_VI_DEF|P_CURSWANT,
798#ifdef FEAT_FIND_ID
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000799 (char_u *)&p_def, PV_DEF, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200800 {(char_u *)"^\\s*#\\s*define", (char_u *)0L}
801#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000802 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200803 {(char_u *)NULL, (char_u *)0L}
804#endif
805 SCTX_INIT},
806 {"delcombine", "deco", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000807 (char_u *)&p_deco, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200808 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
809 {"dictionary", "dict", P_STRING|P_EXPAND|P_VI_DEF|P_ONECOMMA|P_NODUP|P_NDNAME,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000810 (char_u *)&p_dict, PV_DICT, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200811 {(char_u *)"", (char_u *)0L} SCTX_INIT},
812 {"diff", NULL, P_BOOL|P_VI_DEF|P_RWIN|P_NOGLOB,
813#ifdef FEAT_DIFF
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000814 (char_u *)VAR_WIN, PV_DIFF, did_set_diff,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200815#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000816 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200817#endif
818 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
819 {"diffexpr", "dex", P_STRING|P_VI_DEF|P_SECURE|P_CURSWANT,
820#if defined(FEAT_DIFF) && defined(FEAT_EVAL)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000821 (char_u *)&p_dex, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200822 {(char_u *)"", (char_u *)0L}
823#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000824 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200825 {(char_u *)0L, (char_u *)0L}
826#endif
827 SCTX_INIT},
828 {"diffopt", "dip", P_STRING|P_ALLOCED|P_VI_DEF|P_RWIN|P_ONECOMMA
829 |P_NODUP,
830#ifdef FEAT_DIFF
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000831 (char_u *)&p_dip, PV_NONE, did_set_diffopt,
Bram Moolenaarc8234772019-11-10 21:00:27 +0100832 {(char_u *)"internal,filler,closeoff",
833 (char_u *)NULL}
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200834#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000835 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200836 {(char_u *)"", (char_u *)NULL}
837#endif
838 SCTX_INIT},
839 {"digraph", "dg", P_BOOL|P_VI_DEF|P_VIM,
840#ifdef FEAT_DIGRAPHS
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000841 (char_u *)&p_dg, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200842#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000843 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200844#endif
845 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
846 {"directory", "dir", P_STRING|P_EXPAND|P_VI_DEF|P_ONECOMMA
847 |P_NODUP|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000848 (char_u *)&p_dir, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200849 {(char_u *)DFLT_DIR, (char_u *)0L} SCTX_INIT},
850 {"display", "dy", P_STRING|P_VI_DEF|P_ONECOMMA|P_RALL|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000851 (char_u *)&p_dy, PV_NONE, did_set_display,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200852 {(char_u *)"", (char_u *)0L} SCTX_INIT},
853 {"eadirection", "ead", P_STRING|P_VI_DEF,
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +0000854 (char_u *)&p_ead, PV_NONE, did_set_eadirection,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200855 {(char_u *)"both", (char_u *)0L}
856 SCTX_INIT},
857 {"edcompatible","ed", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000858 (char_u *)&p_ed, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200859 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
Bram Moolenaarfb0cf232022-10-22 11:25:19 +0100860 {"emoji", "emo", P_BOOL|P_VI_DEF|P_RCLR,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000861 (char_u *)&p_emoji, PV_NONE, did_set_ambiwidth,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200862 {(char_u *)TRUE, (char_u *)0L}
863 SCTX_INIT},
864 {"encoding", "enc", P_STRING|P_VI_DEF|P_RCLR|P_NO_ML,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000865 (char_u *)&p_enc, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200866 {(char_u *)ENC_DFLT, (char_u *)0L}
867 SCTX_INIT},
Bram Moolenaarfb0cf232022-10-22 11:25:19 +0100868 {"endoffile", "eof", P_BOOL|P_NO_MKRC|P_VI_DEF|P_RSTAT,
869 (char_u *)&p_eof, PV_EOF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000870 did_set_eof_eol_fixeol_bomb,
Bram Moolenaar0aad88f2022-11-12 11:54:26 +0000871 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200872 {"endofline", "eol", P_BOOL|P_NO_MKRC|P_VI_DEF|P_RSTAT,
873 (char_u *)&p_eol, PV_EOL,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000874 did_set_eof_eol_fixeol_bomb,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200875 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
876 {"equalalways", "ea", P_BOOL|P_VI_DEF|P_RALL,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000877 (char_u *)&p_ea, PV_NONE, did_set_equalalways,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200878 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
879 {"equalprg", "ep", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000880 (char_u *)&p_ep, PV_EP, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200881 {(char_u *)"", (char_u *)0L} SCTX_INIT},
882 {"errorbells", "eb", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000883 (char_u *)&p_eb, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200884 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
885 {"errorfile", "ef", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
886#ifdef FEAT_QUICKFIX
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000887 (char_u *)&p_ef, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200888 {(char_u *)DFLT_ERRORFILE, (char_u *)0L}
889#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000890 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200891 {(char_u *)NULL, (char_u *)0L}
892#endif
893 SCTX_INIT},
894 {"errorformat", "efm", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
895#ifdef FEAT_QUICKFIX
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000896 (char_u *)&p_efm, PV_EFM, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200897 {(char_u *)DFLT_EFM, (char_u *)0L}
898#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000899 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200900 {(char_u *)NULL, (char_u *)0L}
901#endif
902 SCTX_INIT},
903 {"esckeys", "ek", P_BOOL|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000904 (char_u *)&p_ek, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200905 {(char_u *)FALSE, (char_u *)TRUE} SCTX_INIT},
906 {"eventignore", "ei", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000907 (char_u *)&p_ei, PV_NONE, did_set_eventignore,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200908 {(char_u *)"", (char_u *)0L} SCTX_INIT},
909 {"expandtab", "et", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000910 (char_u *)&p_et, PV_ET, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200911 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
912 {"exrc", "ex", P_BOOL|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000913 (char_u *)&p_exrc, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200914 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
915 {"fileencoding","fenc", P_STRING|P_ALLOCED|P_VI_DEF|P_RSTAT|P_RBUF
916 |P_NO_MKRC,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000917 (char_u *)&p_fenc, PV_FENC, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200918 {(char_u *)"", (char_u *)0L}
919 SCTX_INIT},
920 {"fileencodings","fencs", P_STRING|P_VI_DEF|P_ONECOMMA,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000921 (char_u *)&p_fencs, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200922 {(char_u *)"ucs-bom", (char_u *)0L}
923 SCTX_INIT},
924 {"fileformat", "ff", P_STRING|P_ALLOCED|P_VI_DEF|P_RSTAT|P_NO_MKRC
925 |P_CURSWANT,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000926 (char_u *)&p_ff, PV_FF, did_set_fileformat,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200927 {(char_u *)DFLT_FF, (char_u *)0L} SCTX_INIT},
928 {"fileformats", "ffs", P_STRING|P_VIM|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000929 (char_u *)&p_ffs, PV_NONE, did_set_fileformats,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200930 {(char_u *)DFLT_FFS_VI, (char_u *)DFLT_FFS_VIM}
931 SCTX_INIT},
932 {"fileignorecase", "fic", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000933 (char_u *)&p_fic, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200934 {
935#ifdef CASE_INSENSITIVE_FILENAME
936 (char_u *)TRUE,
937#else
938 (char_u *)FALSE,
939#endif
940 (char_u *)0L} SCTX_INIT},
Bram Moolenaard5e8c922021-02-02 21:10:01 +0100941 {"filetype", "ft", P_STRING|P_EXPAND|P_ALLOCED|P_VI_DEF|P_NOGLOB|P_NFNAME,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000942 (char_u *)&p_ft, PV_FT, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200943 {(char_u *)"", (char_u *)0L}
944 SCTX_INIT},
945 {"fillchars", "fcs", P_STRING|P_VI_DEF|P_RALL|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000946 (char_u *)&p_fcs, PV_FCS, NULL,
Bram Moolenaar4ba5f1d2022-10-04 14:36:29 +0100947 {(char_u *)"vert:|,fold:-,eob:~,lastline:@",
948 (char_u *)0L}
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200949 SCTX_INIT},
950 {"fixendofline", "fixeol", P_BOOL|P_VI_DEF|P_RSTAT,
951 (char_u *)&p_fixeol, PV_FIXEOL,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000952 did_set_eof_eol_fixeol_bomb,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200953 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
954 {"fkmap", "fk", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000955 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200956 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
957 {"flash", "fl", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000958 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200959 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
960 {"foldclose", "fcl", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP|P_RWIN,
961#ifdef FEAT_FOLDING
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +0000962 (char_u *)&p_fcl, PV_NONE, did_set_foldclose,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200963 {(char_u *)"", (char_u *)0L}
964#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000965 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200966 {(char_u *)NULL, (char_u *)0L}
967#endif
968 SCTX_INIT},
969 {"foldcolumn", "fdc", P_NUM|P_VI_DEF|P_RWIN,
970#ifdef FEAT_FOLDING
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000971 (char_u *)VAR_WIN, PV_FDC, did_set_foldcolumn,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200972 {(char_u *)FALSE, (char_u *)0L}
973#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000974 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200975 {(char_u *)NULL, (char_u *)0L}
976#endif
977 SCTX_INIT},
978 {"foldenable", "fen", P_BOOL|P_VI_DEF|P_RWIN,
979#ifdef FEAT_FOLDING
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000980 (char_u *)VAR_WIN, PV_FEN, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200981 {(char_u *)TRUE, (char_u *)0L}
982#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000983 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200984 {(char_u *)NULL, (char_u *)0L}
985#endif
986 SCTX_INIT},
987 {"foldexpr", "fde", P_STRING|P_ALLOCED|P_VIM|P_VI_DEF|P_RWIN|P_MLE,
988#if defined(FEAT_FOLDING) && defined(FEAT_EVAL)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000989 (char_u *)VAR_WIN, PV_FDE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200990 {(char_u *)"0", (char_u *)NULL}
991#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000992 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200993 {(char_u *)NULL, (char_u *)0L}
994#endif
995 SCTX_INIT},
996 {"foldignore", "fdi", P_STRING|P_ALLOCED|P_VIM|P_VI_DEF|P_RWIN,
997#ifdef FEAT_FOLDING
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000998 (char_u *)VAR_WIN, PV_FDI, did_set_foldignore,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200999 {(char_u *)"#", (char_u *)NULL}
1000#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001001 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001002 {(char_u *)NULL, (char_u *)0L}
1003#endif
1004 SCTX_INIT},
1005 {"foldlevel", "fdl", P_NUM|P_VI_DEF|P_RWIN,
1006#ifdef FEAT_FOLDING
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001007 (char_u *)VAR_WIN, PV_FDL, did_set_foldlevel,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001008 {(char_u *)0L, (char_u *)0L}
1009#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001010 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001011 {(char_u *)NULL, (char_u *)0L}
1012#endif
1013 SCTX_INIT},
1014 {"foldlevelstart","fdls", P_NUM|P_VI_DEF|P_CURSWANT,
1015#ifdef FEAT_FOLDING
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001016 (char_u *)&p_fdls, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001017 {(char_u *)-1L, (char_u *)0L}
1018#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001019 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001020 {(char_u *)NULL, (char_u *)0L}
1021#endif
1022 SCTX_INIT},
1023 {"foldmarker", "fmr", P_STRING|P_ALLOCED|P_VIM|P_VI_DEF|
1024 P_RWIN|P_ONECOMMA|P_NODUP,
1025#ifdef FEAT_FOLDING
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001026 (char_u *)VAR_WIN, PV_FMR, did_set_foldmarker,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001027 {(char_u *)"{{{,}}}", (char_u *)NULL}
1028#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001029 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001030 {(char_u *)NULL, (char_u *)0L}
1031#endif
1032 SCTX_INIT},
1033 {"foldmethod", "fdm", P_STRING|P_ALLOCED|P_VIM|P_VI_DEF|P_RWIN,
1034#ifdef FEAT_FOLDING
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001035 (char_u *)VAR_WIN, PV_FDM, did_set_foldmethod,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001036 {(char_u *)"manual", (char_u *)NULL}
1037#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001038 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001039 {(char_u *)NULL, (char_u *)0L}
1040#endif
1041 SCTX_INIT},
1042 {"foldminlines","fml", P_NUM|P_VI_DEF|P_RWIN,
1043#ifdef FEAT_FOLDING
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001044 (char_u *)VAR_WIN, PV_FML, did_set_foldminlines,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001045 {(char_u *)1L, (char_u *)0L}
1046#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001047 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001048 {(char_u *)NULL, (char_u *)0L}
1049#endif
1050 SCTX_INIT},
1051 {"foldnestmax", "fdn", P_NUM|P_VI_DEF|P_RWIN,
1052#ifdef FEAT_FOLDING
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001053 (char_u *)VAR_WIN, PV_FDN, did_set_foldnestmax,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001054 {(char_u *)20L, (char_u *)0L}
1055#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001056 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001057 {(char_u *)NULL, (char_u *)0L}
1058#endif
1059 SCTX_INIT},
1060 {"foldopen", "fdo", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP|P_CURSWANT,
1061#ifdef FEAT_FOLDING
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +00001062 (char_u *)&p_fdo, PV_NONE, did_set_foldopen,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001063 {(char_u *)"block,hor,mark,percent,quickfix,search,tag,undo",
1064 (char_u *)0L}
1065#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001066 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001067 {(char_u *)NULL, (char_u *)0L}
1068#endif
1069 SCTX_INIT},
1070 {"foldtext", "fdt", P_STRING|P_ALLOCED|P_VIM|P_VI_DEF|P_RWIN|P_MLE,
1071#if defined(FEAT_FOLDING) && defined(FEAT_EVAL)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001072 (char_u *)VAR_WIN, PV_FDT, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001073 {(char_u *)"foldtext()", (char_u *)NULL}
1074#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001075 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001076 {(char_u *)NULL, (char_u *)0L}
1077#endif
1078 SCTX_INIT},
1079 {"formatexpr", "fex", P_STRING|P_ALLOCED|P_VI_DEF|P_VIM|P_MLE,
1080#ifdef FEAT_EVAL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001081 (char_u *)&p_fex, PV_FEX, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001082 {(char_u *)"", (char_u *)0L}
1083#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001084 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001085 {(char_u *)0L, (char_u *)0L}
1086#endif
1087 SCTX_INIT},
1088 {"formatoptions","fo", P_STRING|P_ALLOCED|P_VIM|P_FLAGLIST,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001089 (char_u *)&p_fo, PV_FO, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001090 {(char_u *)DFLT_FO_VI, (char_u *)DFLT_FO_VIM}
1091 SCTX_INIT},
1092 {"formatlistpat","flp", P_STRING|P_ALLOCED|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001093 (char_u *)&p_flp, PV_FLP, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001094 {(char_u *)"^\\s*\\d\\+[\\]:.)}\\t ]\\s*",
1095 (char_u *)0L} SCTX_INIT},
1096 {"formatprg", "fp", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001097 (char_u *)&p_fp, PV_FP, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001098 {(char_u *)"", (char_u *)0L} SCTX_INIT},
1099 {"fsync", "fs", P_BOOL|P_SECURE|P_VI_DEF,
1100#ifdef HAVE_FSYNC
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001101 (char_u *)&p_fs, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001102 {(char_u *)TRUE, (char_u *)0L}
1103#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001104 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001105 {(char_u *)FALSE, (char_u *)0L}
1106#endif
1107 SCTX_INIT},
1108 {"gdefault", "gd", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001109 (char_u *)&p_gd, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001110 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1111 {"graphic", "gr", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001112 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001113 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1114 {"grepformat", "gfm", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
1115#ifdef FEAT_QUICKFIX
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001116 (char_u *)&p_gefm, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001117 {(char_u *)DFLT_GREPFORMAT, (char_u *)0L}
1118#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001119 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001120 {(char_u *)NULL, (char_u *)0L}
1121#endif
1122 SCTX_INIT},
1123 {"grepprg", "gp", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
1124#ifdef FEAT_QUICKFIX
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001125 (char_u *)&p_gp, PV_GP, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001126 {
ichizok02560422022-04-05 14:18:44 +01001127# if defined(MSWIN)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001128 // may be changed to "grep -n" in os_win32.c
1129 (char_u *)"findstr /n",
ichizok02560422022-04-05 14:18:44 +01001130# elif defined(UNIX)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001131 // Add an extra file name so that grep will always
1132 // insert a file name in the match line.
1133 (char_u *)"grep -n $* /dev/null",
ichizok02560422022-04-05 14:18:44 +01001134# elif defined(VMS)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001135 (char_u *)"SEARCH/NUMBERS ",
ichizok02560422022-04-05 14:18:44 +01001136# else
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001137 (char_u *)"grep -n ",
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001138# endif
1139 (char_u *)0L}
1140#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001141 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001142 {(char_u *)NULL, (char_u *)0L}
1143#endif
1144 SCTX_INIT},
1145 {"guicursor", "gcr", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
1146#ifdef CURSOR_SHAPE
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001147 (char_u *)&p_guicursor, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001148 {
1149# ifdef FEAT_GUI
1150 (char_u *)"n-v-c:block-Cursor/lCursor,ve:ver35-Cursor,o:hor50-Cursor,i-ci:ver25-Cursor/lCursor,r-cr:hor20-Cursor/lCursor,sm:block-Cursor-blinkwait175-blinkoff150-blinkon175",
1151# else // Win32 console
1152 (char_u *)"n-v-c:block,o:hor50,i-ci:hor15,r-cr:hor30,sm:block",
1153# endif
1154 (char_u *)0L}
1155#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001156 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001157 {(char_u *)NULL, (char_u *)0L}
1158#endif
1159 SCTX_INIT},
1160 {"guifont", "gfn", P_STRING|P_VI_DEF|P_RCLR|P_ONECOMMA|P_NODUP,
1161#ifdef FEAT_GUI
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001162 (char_u *)&p_guifont, PV_NONE, did_set_guifont,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001163 {(char_u *)"", (char_u *)0L}
1164#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001165 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001166 {(char_u *)NULL, (char_u *)0L}
1167#endif
1168 SCTX_INIT},
1169 {"guifontset", "gfs", P_STRING|P_VI_DEF|P_RCLR|P_ONECOMMA,
1170#if defined(FEAT_GUI) && defined(FEAT_XFONTSET)
1171 (char_u *)&p_guifontset, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001172 did_set_guifontset,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001173 {(char_u *)"", (char_u *)0L}
1174#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001175 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001176 {(char_u *)NULL, (char_u *)0L}
1177#endif
1178 SCTX_INIT},
1179 {"guifontwide", "gfw", P_STRING|P_VI_DEF|P_RCLR|P_ONECOMMA|P_NODUP,
1180#if defined(FEAT_GUI)
1181 (char_u *)&p_guifontwide, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001182 did_set_guifontwide,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001183 {(char_u *)"", (char_u *)0L}
1184#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001185 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001186 {(char_u *)NULL, (char_u *)0L}
1187#endif
1188 SCTX_INIT},
Dusan Popovic4eeedc02021-10-16 20:52:05 +01001189
1190
1191 {"guiligatures", "gli", P_STRING|P_VI_DEF|P_RCLR|P_ONECOMMA|P_NODUP,
1192#if defined(FEAT_GUI_GTK)
1193 (char_u *)&p_guiligatures, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001194 did_set_guiligatures,
Dusan Popovic4eeedc02021-10-16 20:52:05 +01001195 {(char_u *)"", (char_u *)0L}
1196#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001197 (char_u *)NULL, PV_NONE, NULL,
Dusan Popovic4eeedc02021-10-16 20:52:05 +01001198 {(char_u *)NULL, (char_u *)0L}
1199#endif
1200 SCTX_INIT},
1201
1202
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001203 {"guiheadroom", "ghr", P_NUM|P_VI_DEF,
1204#if defined(FEAT_GUI_GTK) || defined(FEAT_GUI_X11)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001205 (char_u *)&p_ghr, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001206#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001207 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001208#endif
1209 {(char_u *)50L, (char_u *)0L} SCTX_INIT},
1210 {"guioptions", "go", P_STRING|P_VI_DEF|P_RALL|P_FLAGLIST,
1211#if defined(FEAT_GUI)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001212 (char_u *)&p_go, PV_NONE, did_set_guioptions,
Bram Moolenaar097148e2020-08-11 21:58:20 +02001213# if defined(UNIX)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001214 {(char_u *)"aegimrLtT", (char_u *)0L}
1215# else
1216 {(char_u *)"egmrLtT", (char_u *)0L}
1217# endif
1218#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001219 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001220 {(char_u *)NULL, (char_u *)0L}
1221#endif
1222 SCTX_INIT},
1223 {"guipty", NULL, P_BOOL|P_VI_DEF,
1224#if defined(FEAT_GUI)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001225 (char_u *)&p_guipty, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001226#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001227 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001228#endif
1229 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
1230 {"guitablabel", "gtl", P_STRING|P_VI_DEF|P_RWIN|P_MLE,
1231#if defined(FEAT_GUI_TABLINE)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001232 (char_u *)&p_gtl, PV_NONE, did_set_guitablabel,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001233 {(char_u *)"", (char_u *)0L}
1234#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001235 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001236 {(char_u *)NULL, (char_u *)0L}
1237#endif
1238 SCTX_INIT},
1239 {"guitabtooltip", "gtt", P_STRING|P_VI_DEF|P_RWIN,
1240#if defined(FEAT_GUI_TABLINE)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001241 (char_u *)&p_gtt, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001242 {(char_u *)"", (char_u *)0L}
1243#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001244 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001245 {(char_u *)NULL, (char_u *)0L}
1246#endif
1247 SCTX_INIT},
1248 {"hardtabs", "ht", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001249 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001250 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
1251 {"helpfile", "hf", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001252 (char_u *)&p_hf, PV_NONE, did_set_helpfile,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001253 {(char_u *)DFLT_HELPFILE, (char_u *)0L}
1254 SCTX_INIT},
1255 {"helpheight", "hh", P_NUM|P_VI_DEF,
1256 (char_u *)&p_hh, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001257 did_set_winheight_helpheight,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001258 {(char_u *)20L, (char_u *)0L} SCTX_INIT},
1259 {"helplang", "hlg", P_STRING|P_VI_DEF|P_ONECOMMA,
1260#ifdef FEAT_MULTI_LANG
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001261 (char_u *)&p_hlg, PV_NONE, did_set_helplang,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001262 {(char_u *)"", (char_u *)0L}
1263#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001264 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001265 {(char_u *)0L, (char_u *)0L}
1266#endif
1267 SCTX_INIT},
1268 {"hidden", "hid", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001269 (char_u *)&p_hid, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001270 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1271 {"highlight", "hl", P_STRING|P_VI_DEF|P_RCLR|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001272 (char_u *)&p_hl, PV_NONE, did_set_highlight,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001273 {(char_u *)HIGHLIGHT_INIT, (char_u *)0L}
1274 SCTX_INIT},
1275 {"history", "hi", P_NUM|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001276 (char_u *)&p_hi, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001277 {(char_u *)0L, (char_u *)50L} SCTX_INIT},
1278 {"hkmap", "hk", P_BOOL|P_VI_DEF|P_VIM,
1279#ifdef FEAT_RIGHTLEFT
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001280 (char_u *)&p_hkmap, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001281#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001282 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001283#endif
1284 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1285 {"hkmapp", "hkp", P_BOOL|P_VI_DEF|P_VIM,
1286#ifdef FEAT_RIGHTLEFT
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001287 (char_u *)&p_hkmapp, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001288#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001289 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001290#endif
1291 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1292 {"hlsearch", "hls", P_BOOL|P_VI_DEF|P_VIM|P_RALL,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001293#if defined(FEAT_SEARCH_EXTRA)
1294 (char_u *)&p_hls, PV_NONE, did_set_hlsearch,
1295#else
1296 (char_u *)NULL, PV_NONE, NULL,
1297#endif
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001298 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1299 {"icon", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001300 (char_u *)&p_icon, PV_NONE, did_set_title_icon,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001301 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1302 {"iconstring", NULL, P_STRING|P_VI_DEF|P_MLE,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001303 (char_u *)&p_iconstring, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001304 did_set_iconstring,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001305 {(char_u *)"", (char_u *)0L} SCTX_INIT},
1306 {"ignorecase", "ic", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001307 (char_u *)&p_ic, PV_NONE, did_set_ignorecase,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001308 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
Yegappan Lakshmanan64095532021-12-06 11:03:55 +00001309 {"imactivatefunc","imaf",P_STRING|P_VI_DEF|P_SECURE|P_FUNC,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001310#if defined(FEAT_EVAL) && \
1311 (defined(FEAT_XIM) || defined(IME_WITHOUT_XIM) || defined(VIMDLL))
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001312 (char_u *)&p_imaf, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001313 did_set_imactivatefunc,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001314 {(char_u *)"", (char_u *)NULL}
1315# else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001316 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001317 {(char_u *)NULL, (char_u *)0L}
1318# endif
1319 SCTX_INIT},
1320 {"imactivatekey","imak",P_STRING|P_VI_DEF,
1321#if defined(FEAT_XIM) && defined(FEAT_GUI_GTK)
1322 (char_u *)&p_imak, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001323 did_set_imactivatekey,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001324#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001325 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001326#endif
1327 {(char_u *)"", (char_u *)0L} SCTX_INIT},
1328 {"imcmdline", "imc", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001329 (char_u *)&p_imcmdline, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001330 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1331 {"imdisable", "imd", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001332#if defined(HAVE_INPUT_METHOD)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001333 (char_u *)&p_imdisable, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001334 did_set_imdisable,
1335#else
1336 (char_u *)NULL, PV_NONE, NULL,
1337#endif
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001338 {(char_u *)FALSE, (char_u *)0L}
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001339 SCTX_INIT},
1340 {"iminsert", "imi", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001341 (char_u *)&p_iminsert, PV_IMI, did_set_iminsert,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001342 {(char_u *)B_IMODE_NONE, (char_u *)0L}
1343 SCTX_INIT},
1344 {"imsearch", "ims", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001345 (char_u *)&p_imsearch, PV_IMS, did_set_imsearch,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001346 {(char_u *)B_IMODE_USE_INSERT, (char_u *)0L}
1347 SCTX_INIT},
Yegappan Lakshmanan64095532021-12-06 11:03:55 +00001348 {"imstatusfunc","imsf",P_STRING|P_VI_DEF|P_SECURE|P_FUNC,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001349#if defined(FEAT_EVAL) && \
1350 (defined(FEAT_XIM) || defined(IME_WITHOUT_XIM) || defined(VIMDLL))
1351 (char_u *)&p_imsf, PV_NONE, did_set_imstatusfunc,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001352 {(char_u *)"", (char_u *)NULL}
1353#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001354 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001355 {(char_u *)NULL, (char_u *)0L}
1356#endif
1357 SCTX_INIT},
1358 {"imstyle", "imst", P_NUM|P_VI_DEF|P_SECURE,
1359#if defined(FEAT_XIM) && defined(FEAT_GUI_GTK)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001360 (char_u *)&p_imst, PV_NONE, did_set_imstyle,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001361 {(char_u *)IM_OVER_THE_SPOT, (char_u *)0L}
1362#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001363 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001364 {(char_u *)0L, (char_u *)0L}
1365#endif
1366 SCTX_INIT},
1367 {"include", "inc", P_STRING|P_ALLOCED|P_VI_DEF,
1368#ifdef FEAT_FIND_ID
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001369 (char_u *)&p_inc, PV_INC, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001370 {(char_u *)"^\\s*#\\s*include", (char_u *)0L}
1371#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001372 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001373 {(char_u *)0L, (char_u *)0L}
1374#endif
1375 SCTX_INIT},
1376 {"includeexpr", "inex", P_STRING|P_ALLOCED|P_VI_DEF|P_MLE,
1377#if defined(FEAT_FIND_ID) && defined(FEAT_EVAL)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001378 (char_u *)&p_inex, PV_INEX, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001379 {(char_u *)"", (char_u *)0L}
1380#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001381 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001382 {(char_u *)0L, (char_u *)0L}
1383#endif
1384 SCTX_INIT},
1385 {"incsearch", "is", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001386 (char_u *)&p_is, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001387 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1388 {"indentexpr", "inde", P_STRING|P_ALLOCED|P_VI_DEF|P_VIM|P_MLE,
Bram Moolenaar8e145b82022-05-21 20:17:31 +01001389#if defined(FEAT_EVAL)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001390 (char_u *)&p_inde, PV_INDE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001391 {(char_u *)"", (char_u *)0L}
1392#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001393 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001394 {(char_u *)0L, (char_u *)0L}
1395#endif
1396 SCTX_INIT},
1397 {"indentkeys", "indk", P_STRING|P_ALLOCED|P_VI_DEF|P_ONECOMMA|P_NODUP,
Bram Moolenaar8e145b82022-05-21 20:17:31 +01001398#if defined(FEAT_EVAL)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001399 (char_u *)&p_indk, PV_INDK, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001400 {INDENTKEYS_DEFAULT, (char_u *)0L}
1401#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001402 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001403 {(char_u *)0L, (char_u *)0L}
1404#endif
1405 SCTX_INIT},
1406 {"infercase", "inf", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001407 (char_u *)&p_inf, PV_INF, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001408 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1409 {"insertmode", "im", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001410 (char_u *)&p_im, PV_NONE, did_set_insertmode,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001411 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1412 {"isfname", "isf", P_STRING|P_VI_DEF|P_COMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001413 (char_u *)&p_isf, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001414 {
1415#ifdef BACKSLASH_IN_FILENAME
1416 // Excluded are: & and ^ are special in cmd.exe
1417 // ( and ) are used in text separating fnames
1418 (char_u *)"@,48-57,/,\\,.,-,_,+,,,#,$,%,{,},[,],:,@-@,!,~,=",
1419#else
ichizok02560422022-04-05 14:18:44 +01001420# if defined(AMIGA)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001421 (char_u *)"@,48-57,/,.,-,_,+,,,$,:",
ichizok02560422022-04-05 14:18:44 +01001422# elif defined(VMS)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001423 (char_u *)"@,48-57,/,.,-,_,+,,,#,$,%,<,>,[,],:,;,~",
ichizok02560422022-04-05 14:18:44 +01001424# else // UNIX et al.
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001425 (char_u *)"@,48-57,/,.,-,_,+,,,#,$,%,~,=",
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001426# endif
1427#endif
1428 (char_u *)0L} SCTX_INIT},
1429 {"isident", "isi", P_STRING|P_VI_DEF|P_COMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001430 (char_u *)&p_isi, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001431 {
1432#if defined(MSWIN)
1433 (char_u *)"@,48-57,_,128-167,224-235",
1434#else
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001435 (char_u *)"@,48-57,_,192-255",
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001436#endif
1437 (char_u *)0L} SCTX_INIT},
1438 {"iskeyword", "isk", P_STRING|P_ALLOCED|P_VIM|P_COMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001439 (char_u *)&p_isk, PV_ISK, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001440 {
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001441 (char_u *)"@,48-57,_",
Bram Moolenaar424bcae2022-01-31 14:59:41 +00001442#if defined(MSWIN)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001443 (char_u *)"@,48-57,_,128-167,224-235"
Bram Moolenaar424bcae2022-01-31 14:59:41 +00001444#else
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001445 ISK_LATIN1
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001446#endif
1447 } SCTX_INIT},
1448 {"isprint", "isp", P_STRING|P_VI_DEF|P_RALL|P_COMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001449 (char_u *)&p_isp, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001450 {
1451#if defined(MSWIN) || defined(VMS)
1452 (char_u *)"@,~-255",
1453#else
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001454 ISP_LATIN1,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001455#endif
1456 (char_u *)0L} SCTX_INIT},
1457 {"joinspaces", "js", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001458 (char_u *)&p_js, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001459 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
1460 {"key", NULL, P_STRING|P_ALLOCED|P_VI_DEF|P_NO_MKRC,
1461#ifdef FEAT_CRYPT
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001462 (char_u *)&p_key, PV_KEY, did_set_cryptkey,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001463 {(char_u *)"", (char_u *)0L}
1464#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001465 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001466 {(char_u *)0L, (char_u *)0L}
1467#endif
1468 SCTX_INIT},
1469 {"keymap", "kmp", P_STRING|P_ALLOCED|P_VI_DEF|P_RBUF|P_RSTAT|P_NFNAME|P_PRI_MKRC,
1470#ifdef FEAT_KEYMAP
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001471 (char_u *)&p_keymap, PV_KMAP, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001472 {(char_u *)"", (char_u *)0L}
1473#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001474 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001475 {(char_u *)"", (char_u *)0L}
1476#endif
1477 SCTX_INIT},
1478 {"keymodel", "km", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001479 (char_u *)&p_km, PV_NONE, did_set_keymodel,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001480 {(char_u *)"", (char_u *)0L} SCTX_INIT},
Bram Moolenaar63a2e362022-11-23 20:20:18 +00001481 {"keyprotocol", "kpc", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001482 (char_u *)&p_kpc, PV_NONE, did_set_keyprotocol,
Bram Moolenaar63a2e362022-11-23 20:20:18 +00001483 {(char_u *)"kitty:kitty,foot:kitty,wezterm:kitty,xterm:mok2", (char_u *)0L}
1484 SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001485 {"keywordprg", "kp", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001486 (char_u *)&p_kp, PV_KP, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001487 {
ichizok02560422022-04-05 14:18:44 +01001488#if defined(MSWIN)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001489 (char_u *)":help",
ichizok02560422022-04-05 14:18:44 +01001490#elif defined(VMS)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001491 (char_u *)"help",
ichizok02560422022-04-05 14:18:44 +01001492#elif defined(USEMAN_S)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001493 (char_u *)"man -s",
ichizok02560422022-04-05 14:18:44 +01001494#else
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001495 (char_u *)"man",
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001496#endif
1497 (char_u *)0L} SCTX_INIT},
1498 {"langmap", "lmap", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP|P_SECURE,
1499#ifdef FEAT_LANGMAP
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001500 (char_u *)&p_langmap, PV_NONE, did_set_langmap,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001501 {(char_u *)"", (char_u *)0L}
1502#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001503 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001504 {(char_u *)NULL, (char_u *)0L}
1505#endif
1506 SCTX_INIT},
1507 {"langmenu", "lm", P_STRING|P_VI_DEF|P_NFNAME,
1508#if defined(FEAT_MENU) && defined(FEAT_MULTI_LANG)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001509 (char_u *)&p_lm, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001510#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001511 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001512#endif
1513 {(char_u *)"", (char_u *)0L} SCTX_INIT},
1514 {"langnoremap", "lnr", P_BOOL|P_VI_DEF,
1515#ifdef FEAT_LANGMAP
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001516 (char_u *)&p_lnr, PV_NONE, did_set_langnoremap,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001517#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001518 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001519#endif
1520 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1521 {"langremap", "lrm", P_BOOL|P_VI_DEF,
1522#ifdef FEAT_LANGMAP
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001523 (char_u *)&p_lrm, PV_NONE, did_set_langremap,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001524#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001525 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001526#endif
1527 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
1528 {"laststatus", "ls", P_NUM|P_VI_DEF|P_RALL,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001529 (char_u *)&p_ls, PV_NONE, did_set_laststatus,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001530 {(char_u *)1L, (char_u *)0L} SCTX_INIT},
1531 {"lazyredraw", "lz", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001532 (char_u *)&p_lz, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001533 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1534 {"linebreak", "lbr", P_BOOL|P_VI_DEF|P_RWIN,
1535#ifdef FEAT_LINEBREAK
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001536 (char_u *)VAR_WIN, PV_LBR, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001537#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001538 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001539#endif
1540 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1541 {"lines", NULL, P_NUM|P_NODEFAULT|P_NO_MKRC|P_VI_DEF|P_RCLR,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001542 (char_u *)&Rows, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001543 {
1544#if defined(MSWIN)
1545 (char_u *)25L,
1546#else
1547 (char_u *)24L,
1548#endif
1549 (char_u *)0L} SCTX_INIT},
1550 {"linespace", "lsp", P_NUM|P_VI_DEF|P_RCLR,
1551#ifdef FEAT_GUI
1552 (char_u *)&p_linespace, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001553 did_set_linespace,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001554#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001555 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001556#endif
1557#ifdef FEAT_GUI_MSWIN
1558 {(char_u *)1L, (char_u *)0L}
1559#else
1560 {(char_u *)0L, (char_u *)0L}
1561#endif
1562 SCTX_INIT},
1563 {"lisp", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001564 (char_u *)&p_lisp, PV_LISP, did_set_lisp,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001565 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
Bram Moolenaar49846fb2022-10-15 16:05:33 +01001566 {"lispoptions", "lop", P_STRING|P_ALLOCED|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001567 (char_u *)&p_lop, PV_LOP, did_set_lispoptions,
Bram Moolenaar49846fb2022-10-15 16:05:33 +01001568 {(char_u *)"", (char_u *)0L} SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001569 {"lispwords", "lw", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001570 (char_u *)&p_lispwords, PV_LW, NULL,
Bram Moolenaar8e145b82022-05-21 20:17:31 +01001571 {(char_u *)LISPWORD_VALUE, (char_u *)0L} SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001572 {"list", NULL, P_BOOL|P_VI_DEF|P_RWIN,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001573 (char_u *)VAR_WIN, PV_LIST, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001574 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1575 {"listchars", "lcs", P_STRING|P_VI_DEF|P_RALL|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001576 (char_u *)&p_lcs, PV_LCS, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001577 {(char_u *)"eol:$", (char_u *)0L} SCTX_INIT},
1578 {"loadplugins", "lpl", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001579 (char_u *)&p_lpl, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001580 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
1581 {"luadll", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
1582#if defined(DYNAMIC_LUA)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001583 (char_u *)&p_luadll, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001584 {(char_u *)DYNAMIC_LUA_DLL, (char_u *)0L}
1585#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001586 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001587 {(char_u *)"", (char_u *)0L}
1588#endif
1589 SCTX_INIT},
1590 {"macatsui", NULL, P_BOOL|P_VI_DEF|P_RCLR,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001591 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001592 {(char_u *)"", (char_u *)0L}
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001593 SCTX_INIT},
1594 {"magic", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001595 (char_u *)&p_magic, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001596 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
1597 {"makeef", "mef", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
1598#ifdef FEAT_QUICKFIX
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001599 (char_u *)&p_mef, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001600 {(char_u *)"", (char_u *)0L}
1601#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001602 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001603 {(char_u *)NULL, (char_u *)0L}
1604#endif
1605 SCTX_INIT},
1606 {"makeencoding","menc", P_STRING|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001607 (char_u *)&p_menc, PV_MENC, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001608 {(char_u *)"", (char_u *)0L}
1609 SCTX_INIT},
1610 {"makeprg", "mp", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
1611#ifdef FEAT_QUICKFIX
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001612 (char_u *)&p_mp, PV_MP, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001613# ifdef VMS
1614 {(char_u *)"MMS", (char_u *)0L}
1615# else
1616 {(char_u *)"make", (char_u *)0L}
1617# endif
1618#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001619 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001620 {(char_u *)NULL, (char_u *)0L}
1621#endif
1622 SCTX_INIT},
1623 {"matchpairs", "mps", P_STRING|P_ALLOCED|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001624 (char_u *)&p_mps, PV_MPS, did_set_matchpairs,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001625 {(char_u *)"(:),{:},[:]", (char_u *)0L}
1626 SCTX_INIT},
1627 {"matchtime", "mat", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001628 (char_u *)&p_mat, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001629 {(char_u *)5L, (char_u *)0L} SCTX_INIT},
1630 {"maxcombine", "mco", P_NUM|P_VI_DEF|P_CURSWANT,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001631 (char_u *)&p_mco, PV_NONE, did_set_maxcombine,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001632 {(char_u *)2, (char_u *)0L} SCTX_INIT},
1633 {"maxfuncdepth", "mfd", P_NUM|P_VI_DEF,
1634#ifdef FEAT_EVAL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001635 (char_u *)&p_mfd, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001636#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001637 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001638#endif
1639 {(char_u *)100L, (char_u *)0L} SCTX_INIT},
1640 {"maxmapdepth", "mmd", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001641 (char_u *)&p_mmd, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001642 {(char_u *)1000L, (char_u *)0L} SCTX_INIT},
1643 {"maxmem", "mm", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001644 (char_u *)&p_mm, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001645 {(char_u *)DFLT_MAXMEM, (char_u *)0L}
1646 SCTX_INIT},
1647 {"maxmempattern","mmp", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001648 (char_u *)&p_mmp, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001649 {(char_u *)1000L, (char_u *)0L} SCTX_INIT},
1650 {"maxmemtot", "mmt", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001651 (char_u *)&p_mmt, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001652 {(char_u *)DFLT_MAXMEMTOT, (char_u *)0L}
1653 SCTX_INIT},
1654 {"menuitems", "mis", P_NUM|P_VI_DEF,
1655#ifdef FEAT_MENU
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001656 (char_u *)&p_mis, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001657#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001658 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001659#endif
1660 {(char_u *)25L, (char_u *)0L} SCTX_INIT},
1661 {"mesg", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001662 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001663 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1664 {"mkspellmem", "msm", P_STRING|P_VI_DEF|P_EXPAND|P_SECURE,
1665#ifdef FEAT_SPELL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001666 (char_u *)&p_msm, PV_NONE, did_set_mkspellmem,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001667 {(char_u *)"460000,2000,500", (char_u *)0L}
1668#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001669 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001670 {(char_u *)0L, (char_u *)0L}
1671#endif
1672 SCTX_INIT},
1673 {"modeline", "ml", P_BOOL|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001674 (char_u *)&p_ml, PV_ML, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001675 {(char_u *)FALSE, (char_u *)TRUE} SCTX_INIT},
1676 {"modelineexpr", "mle", P_BOOL|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001677 (char_u *)&p_mle, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001678 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1679 {"modelines", "mls", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001680 (char_u *)&p_mls, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001681 {(char_u *)5L, (char_u *)0L} SCTX_INIT},
1682 {"modifiable", "ma", P_BOOL|P_VI_DEF|P_NOGLOB,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001683 (char_u *)&p_ma, PV_MA, did_set_modifiable,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001684 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
1685 {"modified", "mod", P_BOOL|P_NO_MKRC|P_VI_DEF|P_RSTAT,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001686 (char_u *)&p_mod, PV_MOD, did_set_modified,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001687 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1688 {"more", NULL, P_BOOL|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001689 (char_u *)&p_more, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001690 {(char_u *)FALSE, (char_u *)TRUE} SCTX_INIT},
1691 {"mouse", NULL, P_STRING|P_VI_DEF|P_FLAGLIST,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001692 (char_u *)&p_mouse, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001693 {
1694#if defined(MSWIN)
1695 (char_u *)"a",
1696#else
1697 (char_u *)"",
1698#endif
1699 (char_u *)0L} SCTX_INIT},
1700 {"mousefocus", "mousef", P_BOOL|P_VI_DEF,
1701#ifdef FEAT_GUI
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001702 (char_u *)&p_mousef, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001703#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001704 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001705#endif
1706 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1707 {"mousehide", "mh", P_BOOL|P_VI_DEF,
1708#ifdef FEAT_GUI
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001709 (char_u *)&p_mh, PV_NONE, did_set_mousehide,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001710#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001711 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001712#endif
1713 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
1714 {"mousemodel", "mousem", P_STRING|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001715 (char_u *)&p_mousem, PV_NONE, did_set_mousemodel,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001716 {
1717#if defined(MSWIN)
1718 (char_u *)"popup",
1719#else
1720# if defined(MACOS_X)
1721 (char_u *)"popup_setpos",
1722# else
1723 (char_u *)"extend",
1724# endif
1725#endif
1726 (char_u *)0L} SCTX_INIT},
Ernie Raelc4cb5442022-04-03 15:47:28 +01001727 {"mousemoveevent", "mousemev", P_BOOL|P_VI_DEF,
1728#ifdef FEAT_GUI
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001729 (char_u *)&p_mousemev, PV_NONE, NULL,
Ernie Raelc4cb5442022-04-03 15:47:28 +01001730#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001731 (char_u *)NULL, PV_NONE, NULL,
Ernie Raelc4cb5442022-04-03 15:47:28 +01001732#endif
1733 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001734 {"mouseshape", "mouses", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
1735#ifdef FEAT_MOUSESHAPE
1736 (char_u *)&p_mouseshape, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001737 did_set_mouseshape,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001738 {(char_u *)"i-r:beam,s:updown,sd:udsizing,vs:leftright,vd:lrsizing,m:no,ml:up-arrow,v:rightup-arrow", (char_u *)0L}
1739#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001740 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001741 {(char_u *)NULL, (char_u *)0L}
1742#endif
1743 SCTX_INIT},
1744 {"mousetime", "mouset", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001745 (char_u *)&p_mouset, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001746 {(char_u *)500L, (char_u *)0L} SCTX_INIT},
1747 {"mzschemedll", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
1748#if defined(DYNAMIC_MZSCHEME)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001749 (char_u *)&p_mzschemedll, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001750 {(char_u *)DYNAMIC_MZSCH_DLL, (char_u *)0L}
1751#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001752 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001753 {(char_u *)"", (char_u *)0L}
1754#endif
1755 SCTX_INIT},
1756 {"mzschemegcdll", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
1757#if defined(DYNAMIC_MZSCHEME)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001758 (char_u *)&p_mzschemegcdll, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001759 {(char_u *)DYNAMIC_MZGC_DLL, (char_u *)0L}
1760#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001761 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001762 {(char_u *)"", (char_u *)0L}
1763#endif
1764 SCTX_INIT},
1765 {"mzquantum", "mzq", P_NUM,
1766#ifdef FEAT_MZSCHEME
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001767 (char_u *)&p_mzq, PV_NONE, did_set_mzquantum,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001768#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001769 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001770#endif
1771 {(char_u *)100L, (char_u *)100L} SCTX_INIT},
1772 {"novice", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001773 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001774 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1775 {"nrformats", "nf", P_STRING|P_ALLOCED|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +00001776 (char_u *)&p_nf, PV_NF, did_set_nrformats,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001777 {(char_u *)"bin,octal,hex", (char_u *)0L}
1778 SCTX_INIT},
1779 {"number", "nu", P_BOOL|P_VI_DEF|P_RWIN,
1780 (char_u *)VAR_WIN, PV_NU,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001781 did_set_number_relativenumber,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001782 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1783 {"numberwidth", "nuw", P_NUM|P_RWIN|P_VIM,
1784#ifdef FEAT_LINEBREAK
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001785 (char_u *)VAR_WIN, PV_NUW, did_set_numberwidth,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001786#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001787 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001788#endif
1789 {(char_u *)8L, (char_u *)4L} SCTX_INIT},
Yegappan Lakshmanan64095532021-12-06 11:03:55 +00001790 {"omnifunc", "ofu", P_STRING|P_ALLOCED|P_VI_DEF|P_SECURE|P_FUNC,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001791#ifdef FEAT_COMPL_FUNC
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001792 (char_u *)&p_ofu, PV_OFU, did_set_omnifunc,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001793 {(char_u *)"", (char_u *)0L}
1794#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001795 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001796 {(char_u *)0L, (char_u *)0L}
1797#endif
1798 SCTX_INIT},
1799 {"open", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001800 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001801 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1802 {"opendevice", "odev", P_BOOL|P_VI_DEF,
1803#if defined(MSWIN)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001804 (char_u *)&p_odev, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001805#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001806 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001807#endif
1808 {(char_u *)FALSE, (char_u *)FALSE}
1809 SCTX_INIT},
Yegappan Lakshmanan64095532021-12-06 11:03:55 +00001810 {"operatorfunc", "opfunc", P_STRING|P_VI_DEF|P_SECURE|P_FUNC,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001811 (char_u *)&p_opfunc, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001812 did_set_operatorfunc,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001813 {(char_u *)"", (char_u *)0L} SCTX_INIT},
1814 {"optimize", "opt", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001815 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001816 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1817 {"osfiletype", "oft", P_STRING|P_ALLOCED|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001818 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001819 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
1820 {"packpath", "pp", P_STRING|P_VI_DEF|P_EXPAND|P_ONECOMMA|P_NODUP
1821 |P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001822 (char_u *)&p_pp, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001823 {(char_u *)DFLT_RUNTIMEPATH, (char_u *)0L}
1824 SCTX_INIT},
1825 {"paragraphs", "para", P_STRING|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001826 (char_u *)&p_para, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001827 {(char_u *)"IPLPPPQPP TPHPLIPpLpItpplpipbp",
1828 (char_u *)0L} SCTX_INIT},
1829 {"paste", NULL, P_BOOL|P_VI_DEF|P_PRI_MKRC,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001830 (char_u *)&p_paste, PV_NONE, did_set_paste,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001831 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1832 {"pastetoggle", "pt", P_STRING|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001833 (char_u *)&p_pt, PV_NONE, did_set_pastetoggle,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001834 {(char_u *)"", (char_u *)0L} SCTX_INIT},
1835 {"patchexpr", "pex", P_STRING|P_VI_DEF|P_SECURE,
1836#if defined(FEAT_DIFF) && defined(FEAT_EVAL)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001837 (char_u *)&p_pex, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001838 {(char_u *)"", (char_u *)0L}
1839#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001840 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001841 {(char_u *)0L, (char_u *)0L}
1842#endif
1843 SCTX_INIT},
1844 {"patchmode", "pm", P_STRING|P_VI_DEF|P_NFNAME,
1845 (char_u *)&p_pm, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001846 did_set_backupext_or_patchmode,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001847 {(char_u *)"", (char_u *)0L} SCTX_INIT},
1848 {"path", "pa", P_STRING|P_EXPAND|P_VI_DEF|P_COMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001849 (char_u *)&p_path, PV_PATH, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001850 {
1851#if defined(AMIGA) || defined(MSWIN)
1852 (char_u *)".,,",
1853#else
1854 (char_u *)".,/usr/include,,",
1855#endif
1856 (char_u *)0L} SCTX_INIT},
1857 {"perldll", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
1858#if defined(DYNAMIC_PERL)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001859 (char_u *)&p_perldll, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001860 {(char_u *)DYNAMIC_PERL_DLL, (char_u *)0L}
1861#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001862 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001863 {(char_u *)0L, (char_u *)0L}
1864#endif
1865 SCTX_INIT},
1866 {"preserveindent", "pi", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001867 (char_u *)&p_pi, PV_PI, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001868 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1869 {"previewheight", "pvh", P_NUM|P_VI_DEF,
1870#if defined(FEAT_QUICKFIX)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001871 (char_u *)&p_pvh, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001872#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001873 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001874#endif
1875 {(char_u *)12L, (char_u *)0L} SCTX_INIT},
1876 {"previewpopup", "pvp", P_STRING|P_VI_DEF|P_COMMA|P_NODUP,
Bram Moolenaar05ad5ff2019-11-30 22:48:27 +01001877#ifdef FEAT_PROP_POPUP
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001878 (char_u *)&p_pvp, PV_NONE, did_set_previewpopup,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001879 {(char_u *)"", (char_u *)0L}
1880#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001881 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001882 {(char_u *)NULL, (char_u *)0L}
1883#endif
1884 SCTX_INIT},
1885 {"previewwindow", "pvw", P_BOOL|P_VI_DEF|P_RSTAT|P_NOGLOB,
1886#if defined(FEAT_QUICKFIX)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001887 (char_u *)VAR_WIN, PV_PVW, did_set_previewwindow,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001888#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001889 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001890#endif
1891 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1892 {"printdevice", "pdev", P_STRING|P_VI_DEF|P_SECURE,
1893#ifdef FEAT_PRINTER
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001894 (char_u *)&p_pdev, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001895 {(char_u *)"", (char_u *)0L}
1896#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001897 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001898 {(char_u *)NULL, (char_u *)0L}
1899#endif
1900 SCTX_INIT},
1901 {"printencoding", "penc", P_STRING|P_VI_DEF,
1902#ifdef FEAT_POSTSCRIPT
1903 (char_u *)&p_penc, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001904 did_set_printencoding,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001905 {(char_u *)"", (char_u *)0L}
1906#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001907 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001908 {(char_u *)NULL, (char_u *)0L}
1909#endif
1910 SCTX_INIT},
1911 {"printexpr", "pexpr", P_STRING|P_VI_DEF|P_SECURE,
1912#ifdef FEAT_POSTSCRIPT
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001913 (char_u *)&p_pexpr, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001914 {(char_u *)"", (char_u *)0L}
1915#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001916 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001917 {(char_u *)NULL, (char_u *)0L}
1918#endif
1919 SCTX_INIT},
1920 {"printfont", "pfn", P_STRING|P_VI_DEF,
1921#ifdef FEAT_PRINTER
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001922 (char_u *)&p_pfn, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001923 {
1924# ifdef MSWIN
1925 (char_u *)"Courier_New:h10",
1926# else
1927 (char_u *)"courier",
1928# endif
1929 (char_u *)0L}
1930#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001931 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001932 {(char_u *)NULL, (char_u *)0L}
1933#endif
1934 SCTX_INIT},
1935 {"printheader", "pheader", P_STRING|P_VI_DEF|P_GETTEXT,
1936#ifdef FEAT_PRINTER
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001937 (char_u *)&p_header, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001938 // untranslated to avoid problems when 'encoding'
1939 // is changed
1940 {(char_u *)"%<%f%h%m%=Page %N", (char_u *)0L}
1941#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001942 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001943 {(char_u *)NULL, (char_u *)0L}
1944#endif
1945 SCTX_INIT},
1946 {"printmbcharset", "pmbcs", P_STRING|P_VI_DEF,
1947#if defined(FEAT_POSTSCRIPT)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001948 (char_u *)&p_pmcs, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001949 {(char_u *)"", (char_u *)0L}
1950#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001951 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001952 {(char_u *)NULL, (char_u *)0L}
1953#endif
1954 SCTX_INIT},
1955 {"printmbfont", "pmbfn", P_STRING|P_VI_DEF,
1956#if defined(FEAT_POSTSCRIPT)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001957 (char_u *)&p_pmfn, PV_NONE, parse_printmbfont,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001958 {(char_u *)"", (char_u *)0L}
1959#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001960 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001961 {(char_u *)NULL, (char_u *)0L}
1962#endif
1963 SCTX_INIT},
1964 {"printoptions", "popt", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
1965#ifdef FEAT_PRINTER
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001966 (char_u *)&p_popt, PV_NONE, parse_printoptions,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001967 {(char_u *)"", (char_u *)0L}
1968#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001969 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001970 {(char_u *)NULL, (char_u *)0L}
1971#endif
1972 SCTX_INIT},
1973 {"prompt", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001974 (char_u *)&p_prompt, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001975 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
1976 {"pumheight", "ph", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001977 (char_u *)&p_ph, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001978 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
1979 {"pumwidth", "pw", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001980 (char_u *)&p_pw, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001981 {(char_u *)15L, (char_u *)15L} SCTX_INIT},
1982 {"pythonthreedll", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
1983#if defined(DYNAMIC_PYTHON3)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001984 (char_u *)&p_py3dll, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001985 {(char_u *)DYNAMIC_PYTHON3_DLL, (char_u *)0L}
1986#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001987 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001988 {(char_u *)NULL, (char_u *)0L}
1989#endif
1990 SCTX_INIT},
1991 {"pythonthreehome", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
1992#if defined(FEAT_PYTHON3)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001993 (char_u *)&p_py3home, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001994 {(char_u *)"", (char_u *)0L}
1995#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001996 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001997 {(char_u *)NULL, (char_u *)0L}
1998#endif
1999 SCTX_INIT},
2000 {"pythondll", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
2001#if defined(DYNAMIC_PYTHON)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002002 (char_u *)&p_pydll, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002003 {(char_u *)DYNAMIC_PYTHON_DLL, (char_u *)0L}
2004#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002005 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002006 {(char_u *)NULL, (char_u *)0L}
2007#endif
2008 SCTX_INIT},
2009 {"pythonhome", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
2010#if defined(FEAT_PYTHON)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002011 (char_u *)&p_pyhome, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002012 {(char_u *)"", (char_u *)0L}
2013#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002014 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002015 {(char_u *)NULL, (char_u *)0L}
2016#endif
2017 SCTX_INIT},
2018 {"pyxversion", "pyx", P_NUM|P_VI_DEF|P_SECURE,
2019#if defined(FEAT_PYTHON) || defined(FEAT_PYTHON3)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002020 (char_u *)&p_pyx, PV_NONE, did_set_pyxversion,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002021#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002022 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002023#endif
2024 {(char_u *)DEFAULT_PYTHON_VER, (char_u *)0L}
2025 SCTX_INIT},
Yegappan Lakshmanan64095532021-12-06 11:03:55 +00002026 {"quickfixtextfunc", "qftf", P_STRING|P_ALLOCED|P_VI_DEF|P_VIM|P_SECURE|P_FUNC,
Bram Moolenaar858ba062020-05-31 23:11:59 +02002027#if defined(FEAT_QUICKFIX) && defined(FEAT_EVAL)
2028 (char_u *)&p_qftf, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002029 did_set_quickfixtextfunc,
Bram Moolenaar858ba062020-05-31 23:11:59 +02002030 {(char_u *)"", (char_u *)0L}
2031#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002032 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar858ba062020-05-31 23:11:59 +02002033 {(char_u *)NULL, (char_u *)NULL}
2034#endif
2035 SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002036 {"quoteescape", "qe", P_STRING|P_ALLOCED|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002037 (char_u *)&p_qe, PV_QE, NULL,
Bram Moolenaar88774872022-08-16 20:24:29 +01002038 {(char_u *)"\\", (char_u *)0L} SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002039 {"readonly", "ro", P_BOOL|P_VI_DEF|P_RSTAT|P_NOGLOB,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002040 (char_u *)&p_ro, PV_RO, did_set_readonly,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002041 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2042 {"redraw", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002043 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002044 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2045 {"redrawtime", "rdt", P_NUM|P_VI_DEF,
2046#ifdef FEAT_RELTIME
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002047 (char_u *)&p_rdt, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002048#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002049 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002050#endif
2051 {(char_u *)2000L, (char_u *)0L} SCTX_INIT},
2052 {"regexpengine", "re", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002053 (char_u *)&p_re, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002054 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2055 {"relativenumber", "rnu", P_BOOL|P_VI_DEF|P_RWIN,
2056 (char_u *)VAR_WIN, PV_RNU,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002057 did_set_number_relativenumber,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002058 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2059 {"remap", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002060 (char_u *)&p_remap, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002061 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
2062 {"renderoptions", "rop", P_STRING|P_ONECOMMA|P_RCLR|P_VI_DEF,
2063#ifdef FEAT_RENDER_OPTIONS
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002064 (char_u *)&p_rop, PV_NONE, did_set_renderoptions,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002065 {(char_u *)"", (char_u *)0L}
2066#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002067 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002068 {(char_u *)NULL, (char_u *)0L}
2069#endif
2070 SCTX_INIT},
2071 {"report", NULL, P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002072 (char_u *)&p_report, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002073 {(char_u *)2L, (char_u *)0L} SCTX_INIT},
2074 {"restorescreen", "rs", P_BOOL|P_VI_DEF,
2075#ifdef MSWIN
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002076 (char_u *)&p_rs, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002077#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002078 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002079#endif
2080 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
2081 {"revins", "ri", P_BOOL|P_VI_DEF|P_VIM,
2082#ifdef FEAT_RIGHTLEFT
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002083 (char_u *)&p_ri, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002084#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002085 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002086#endif
2087 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2088 {"rightleft", "rl", P_BOOL|P_VI_DEF|P_RWIN,
2089#ifdef FEAT_RIGHTLEFT
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002090 (char_u *)VAR_WIN, PV_RL, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002091#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002092 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002093#endif
2094 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2095 {"rightleftcmd", "rlc", P_STRING|P_ALLOCED|P_VI_DEF|P_RWIN,
2096#ifdef FEAT_RIGHTLEFT
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002097 (char_u *)VAR_WIN, PV_RLC, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002098 {(char_u *)"search", (char_u *)NULL}
2099#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002100 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002101 {(char_u *)NULL, (char_u *)0L}
2102#endif
2103 SCTX_INIT},
2104 {"rubydll", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
2105#if defined(DYNAMIC_RUBY)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002106 (char_u *)&p_rubydll, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002107 {(char_u *)DYNAMIC_RUBY_DLL, (char_u *)0L}
2108#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002109 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002110 {(char_u *)NULL, (char_u *)0L}
2111#endif
2112 SCTX_INIT},
2113 {"ruler", "ru", P_BOOL|P_VI_DEF|P_VIM|P_RSTAT,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002114 (char_u *)&p_ru, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002115 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2116 {"rulerformat", "ruf", P_STRING|P_VI_DEF|P_ALLOCED|P_RSTAT|P_MLE,
2117#ifdef FEAT_STL_OPT
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002118 (char_u *)&p_ruf, PV_NONE, did_set_rulerformat,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002119#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002120 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002121#endif
2122 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2123 {"runtimepath", "rtp", P_STRING|P_VI_DEF|P_EXPAND|P_ONECOMMA|P_NODUP
2124 |P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002125 (char_u *)&p_rtp, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002126 {(char_u *)DFLT_RUNTIMEPATH, (char_u *)0L}
2127 SCTX_INIT},
2128 {"scroll", "scr", P_NUM|P_NO_MKRC|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002129 (char_u *)VAR_WIN, PV_SCROLL, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002130 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2131 {"scrollbind", "scb", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002132 (char_u *)VAR_WIN, PV_SCBIND, did_set_scrollbind,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002133 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
Bram Moolenaarae20f342019-11-05 21:09:23 +01002134 {"scrollfocus", "scf", P_BOOL|P_VI_DEF,
2135#if defined(MSWIN) && defined(FEAT_GUI)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002136 (char_u *)&p_scf, PV_NONE, NULL,
Bram Moolenaarae20f342019-11-05 21:09:23 +01002137#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002138 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaarae20f342019-11-05 21:09:23 +01002139#endif
2140 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002141 {"scrolljump", "sj", P_NUM|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002142 (char_u *)&p_sj, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002143 {(char_u *)1L, (char_u *)0L} SCTX_INIT},
2144 {"scrolloff", "so", P_NUM|P_VI_DEF|P_VIM|P_RALL,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002145 (char_u *)&p_so, PV_SO, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002146 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2147 {"scrollopt", "sbo", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +00002148 (char_u *)&p_sbo, PV_NONE, did_set_scrollopt,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002149 {(char_u *)"ver,jump", (char_u *)0L}
2150 SCTX_INIT},
2151 {"sections", "sect", P_STRING|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002152 (char_u *)&p_sections, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002153 {(char_u *)"SHNHH HUnhsh", (char_u *)0L}
2154 SCTX_INIT},
2155 {"secure", NULL, P_BOOL|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002156 (char_u *)&p_secure, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002157 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2158 {"selection", "sel", P_STRING|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002159 (char_u *)&p_sel, PV_NONE, did_set_selection,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002160 {(char_u *)"inclusive", (char_u *)0L}
2161 SCTX_INIT},
2162 {"selectmode", "slm", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +00002163 (char_u *)&p_slm, PV_NONE, did_set_selectmode,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002164 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2165 {"sessionoptions", "ssop", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
2166#ifdef FEAT_SESSION
2167 (char_u *)&p_ssop, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002168 did_set_sessionoptions,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002169 {(char_u *)"blank,buffers,curdir,folds,help,options,tabpages,winsize,terminal",
2170 (char_u *)0L}
2171#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002172 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002173 {(char_u *)0L, (char_u *)0L}
2174#endif
2175 SCTX_INIT},
2176 {"shell", "sh", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002177 (char_u *)&p_sh, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002178 {
2179#ifdef VMS
2180 (char_u *)"-",
2181#else
2182# if defined(MSWIN)
2183 (char_u *)"", // set in set_init_1()
2184# else
2185 (char_u *)"sh",
2186# endif
2187#endif // VMS
2188 (char_u *)0L} SCTX_INIT},
2189 {"shellcmdflag","shcf", P_STRING|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002190 (char_u *)&p_shcf, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002191 {
2192#if defined(MSWIN)
2193 (char_u *)"/c",
2194#else
2195 (char_u *)"-c",
2196#endif
2197 (char_u *)0L} SCTX_INIT},
2198 {"shellpipe", "sp", P_STRING|P_VI_DEF|P_SECURE,
2199#ifdef FEAT_QUICKFIX
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002200 (char_u *)&p_sp, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002201 {
2202#if defined(UNIX)
2203 (char_u *)"| tee",
2204#else
2205 (char_u *)">",
2206#endif
2207 (char_u *)0L}
2208#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002209 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002210 {(char_u *)0L, (char_u *)0L}
2211#endif
2212 SCTX_INIT},
2213 {"shellquote", "shq", P_STRING|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002214 (char_u *)&p_shq, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002215 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2216 {"shellredir", "srr", P_STRING|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002217 (char_u *)&p_srr, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002218 {(char_u *)">", (char_u *)0L} SCTX_INIT},
2219 {"shellslash", "ssl", P_BOOL|P_VI_DEF,
2220#ifdef BACKSLASH_IN_FILENAME
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002221 (char_u *)&p_ssl, PV_NONE, did_set_shellslash,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002222#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002223 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002224#endif
2225 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2226 {"shelltemp", "stmp", P_BOOL,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002227 (char_u *)&p_stmp, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002228 {(char_u *)FALSE, (char_u *)TRUE} SCTX_INIT},
2229 {"shelltype", "st", P_NUM|P_VI_DEF,
2230#ifdef AMIGA
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002231 (char_u *)&p_st, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002232#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002233 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002234#endif
2235 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2236 {"shellxquote", "sxq", P_STRING|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002237 (char_u *)&p_sxq, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002238 {
2239#if defined(UNIX) && defined(USE_SYSTEM)
2240 (char_u *)"\"",
2241#else
2242 (char_u *)"",
2243#endif
2244 (char_u *)0L} SCTX_INIT},
2245 {"shellxescape", "sxe", P_STRING|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002246 (char_u *)&p_sxe, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002247 {
2248#if defined(MSWIN)
2249 (char_u *)"\"&|<>()@^",
2250#else
2251 (char_u *)"",
2252#endif
2253 (char_u *)0L} SCTX_INIT},
2254 {"shiftround", "sr", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002255 (char_u *)&p_sr, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002256 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2257 {"shiftwidth", "sw", P_NUM|P_VI_DEF,
2258 (char_u *)&p_sw, PV_SW,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002259 did_set_shiftwidth_tabstop,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002260 {(char_u *)8L, (char_u *)0L} SCTX_INIT},
2261 {"shortmess", "shm", P_STRING|P_VIM|P_FLAGLIST,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002262 (char_u *)&p_shm, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002263 {(char_u *)"S", (char_u *)"filnxtToOS"}
2264 SCTX_INIT},
2265 {"shortname", "sn", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002266 (char_u *)&p_sn, PV_SN, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002267 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2268 {"showbreak", "sbr", P_STRING|P_VI_DEF|P_RALL,
2269#ifdef FEAT_LINEBREAK
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002270 (char_u *)&p_sbr, PV_SBR, did_set_showbreak,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002271#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002272 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002273#endif
2274 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2275 {"showcmd", "sc", P_BOOL|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002276 (char_u *)&p_sc, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002277 {(char_u *)FALSE,
2278#ifdef UNIX
2279 (char_u *)FALSE
2280#else
2281 (char_u *)TRUE
2282#endif
2283 } SCTX_INIT},
Luuk van Baalba936f62022-12-15 13:15:39 +00002284 {"showcmdloc", "sloc", P_STRING|P_RSTAT,
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +00002285 (char_u *)&p_sloc, PV_NONE, did_set_showcmdloc,
Luuk van Baalba936f62022-12-15 13:15:39 +00002286 {(char_u *)"last", (char_u *)"last"} SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002287 {"showfulltag", "sft", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002288 (char_u *)&p_sft, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002289 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2290 {"showmatch", "sm", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002291 (char_u *)&p_sm, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002292 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2293 {"showmode", "smd", P_BOOL|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002294 (char_u *)&p_smd, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002295 {(char_u *)FALSE, (char_u *)TRUE} SCTX_INIT},
2296 {"showtabline", "stal", P_NUM|P_VI_DEF|P_RALL,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002297 (char_u *)&p_stal, PV_NONE, did_set_showtabline,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002298 {(char_u *)1L, (char_u *)0L} SCTX_INIT},
2299 {"sidescroll", "ss", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002300 (char_u *)&p_ss, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002301 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2302 {"sidescrolloff", "siso", P_NUM|P_VI_DEF|P_VIM|P_RBUF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002303 (char_u *)&p_siso, PV_SISO, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002304 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2305 {"signcolumn", "scl", P_STRING|P_ALLOCED|P_VI_DEF|P_RCLR,
2306#ifdef FEAT_SIGNS
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002307 (char_u *)VAR_WIN, PV_SCL, did_set_signcolumn,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002308 {(char_u *)"auto", (char_u *)0L}
2309#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002310 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002311 {(char_u *)NULL, (char_u *)0L}
2312#endif
2313 SCTX_INIT},
2314 {"slowopen", "slow", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002315 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002316 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2317 {"smartcase", "scs", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002318 (char_u *)&p_scs, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002319 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2320 {"smartindent", "si", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002321 (char_u *)&p_si, PV_SI, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002322 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2323 {"smarttab", "sta", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002324 (char_u *)&p_sta, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002325 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
Bram Moolenaarf6196f42022-10-02 21:29:55 +01002326 {"smoothscroll", "sms", P_BOOL|P_VI_DEF|P_RWIN,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002327 (char_u *)VAR_WIN, PV_SMS, did_set_smoothscroll,
Bram Moolenaarf6196f42022-10-02 21:29:55 +01002328 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002329 {"softtabstop", "sts", P_NUM|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002330 (char_u *)&p_sts, PV_STS, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002331 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2332 {"sourceany", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002333 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002334 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2335 {"spell", NULL, P_BOOL|P_VI_DEF|P_RWIN,
2336#ifdef FEAT_SPELL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002337 (char_u *)VAR_WIN, PV_SPELL, did_set_spell,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002338#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002339 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002340#endif
2341 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2342 {"spellcapcheck", "spc", P_STRING|P_ALLOCED|P_VI_DEF|P_RBUF,
2343#ifdef FEAT_SPELL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002344 (char_u *)&p_spc, PV_SPC, did_set_spellcapcheck,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002345 {(char_u *)"[.?!]\\_[\\])'\" ]\\+", (char_u *)0L}
2346#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002347 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002348 {(char_u *)0L, (char_u *)0L}
2349#endif
2350 SCTX_INIT},
2351 {"spellfile", "spf", P_STRING|P_EXPAND|P_ALLOCED|P_VI_DEF|P_SECURE
2352 |P_ONECOMMA,
2353#ifdef FEAT_SPELL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002354 (char_u *)&p_spf, PV_SPF, did_set_spellfile,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002355 {(char_u *)"", (char_u *)0L}
2356#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002357 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002358 {(char_u *)0L, (char_u *)0L}
2359#endif
2360 SCTX_INIT},
2361 {"spelllang", "spl", P_STRING|P_ALLOCED|P_VI_DEF|P_ONECOMMA
2362 |P_RBUF|P_EXPAND,
2363#ifdef FEAT_SPELL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002364 (char_u *)&p_spl, PV_SPL, did_set_spelllang,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002365 {(char_u *)"en", (char_u *)0L}
2366#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002367 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002368 {(char_u *)0L, (char_u *)0L}
2369#endif
2370 SCTX_INIT},
Bram Moolenaar362b44b2020-06-10 21:47:00 +02002371 {"spelloptions", "spo", P_STRING|P_ALLOCED|P_VI_DEF
2372 |P_ONECOMMA|P_NODUP|P_RBUF,
2373#ifdef FEAT_SPELL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002374 (char_u *)&p_spo, PV_SPO, did_set_spelloptions,
Bram Moolenaar362b44b2020-06-10 21:47:00 +02002375 {(char_u *)"", (char_u *)0L}
2376#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002377 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar362b44b2020-06-10 21:47:00 +02002378 {(char_u *)0L, (char_u *)0L}
2379#endif
2380 SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002381 {"spellsuggest", "sps", P_STRING|P_VI_DEF|P_EXPAND|P_SECURE|P_ONECOMMA,
2382#ifdef FEAT_SPELL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002383 (char_u *)&p_sps, PV_NONE, did_set_spellsuggest,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002384 {(char_u *)"best", (char_u *)0L}
2385#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002386 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002387 {(char_u *)0L, (char_u *)0L}
2388#endif
2389 SCTX_INIT},
2390 {"splitbelow", "sb", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002391 (char_u *)&p_sb, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002392 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
Luuk van Baal13ece2a2022-10-03 15:28:08 +01002393 {"splitkeep", "spk", P_STRING,
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +00002394 (char_u *)&p_spk, PV_NONE, did_set_splitkeep,
Luuk van Baal13ece2a2022-10-03 15:28:08 +01002395 {(char_u *)"cursor", (char_u *)"cursor"} SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002396 {"splitright", "spr", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002397 (char_u *)&p_spr, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002398 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2399 {"startofline", "sol", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002400 (char_u *)&p_sol, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002401 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
2402 {"statusline" ,"stl", P_STRING|P_VI_DEF|P_ALLOCED|P_RSTAT|P_MLE,
2403#ifdef FEAT_STL_OPT
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002404 (char_u *)&p_stl, PV_STL, did_set_statusline,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002405#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002406 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002407#endif
2408 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2409 {"suffixes", "su", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002410 (char_u *)&p_su, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002411 {(char_u *)".bak,~,.o,.h,.info,.swp,.obj",
2412 (char_u *)0L} SCTX_INIT},
2413 {"suffixesadd", "sua", P_STRING|P_VI_DEF|P_ALLOCED|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002414 (char_u *)&p_sua, PV_SUA, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002415 {(char_u *)"", (char_u *)0L}
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002416 SCTX_INIT},
2417 {"swapfile", "swf", P_BOOL|P_VI_DEF|P_RSTAT,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002418 (char_u *)&p_swf, PV_SWF, did_set_swapfile,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002419 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
2420 {"swapsync", "sws", P_STRING|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002421 (char_u *)&p_sws, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002422 {(char_u *)"fsync", (char_u *)0L} SCTX_INIT},
2423 {"switchbuf", "swb", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +00002424 (char_u *)&p_swb, PV_NONE, did_set_switchbuf,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002425 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2426 {"synmaxcol", "smc", P_NUM|P_VI_DEF|P_RBUF,
2427#ifdef FEAT_SYN_HL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002428 (char_u *)&p_smc, PV_SMC, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002429 {(char_u *)3000L, (char_u *)0L}
2430#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002431 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002432 {(char_u *)0L, (char_u *)0L}
2433#endif
2434 SCTX_INIT},
2435 {"syntax", "syn", P_STRING|P_ALLOCED|P_VI_DEF|P_NOGLOB|P_NFNAME,
2436#ifdef FEAT_SYN_HL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002437 (char_u *)&p_syn, PV_SYN, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002438 {(char_u *)"", (char_u *)0L}
2439#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002440 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002441 {(char_u *)0L, (char_u *)0L}
2442#endif
2443 SCTX_INIT},
2444 {"tabline", "tal", P_STRING|P_VI_DEF|P_RALL|P_MLE,
2445#ifdef FEAT_STL_OPT
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002446 (char_u *)&p_tal, PV_NONE, did_set_tabline,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002447#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002448 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002449#endif
2450 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2451 {"tabpagemax", "tpm", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002452 (char_u *)&p_tpm, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002453 {(char_u *)10L, (char_u *)0L} SCTX_INIT},
2454 {"tabstop", "ts", P_NUM|P_VI_DEF|P_RBUF,
2455 (char_u *)&p_ts, PV_TS,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002456 did_set_shiftwidth_tabstop,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002457 {(char_u *)8L, (char_u *)0L} SCTX_INIT},
2458 {"tagbsearch", "tbs", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002459 (char_u *)&p_tbs, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002460#ifdef VMS // binary searching doesn't appear to work on VMS
2461 {(char_u *)0L, (char_u *)0L}
2462#else
2463 {(char_u *)TRUE, (char_u *)0L}
2464#endif
2465 SCTX_INIT},
2466 {"tagcase", "tc", P_STRING|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002467 (char_u *)&p_tc, PV_TC, did_set_tagcase,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002468 {(char_u *)"followic", (char_u *)"followic"} SCTX_INIT},
Yegappan Lakshmanan64095532021-12-06 11:03:55 +00002469 {"tagfunc", "tfu", P_STRING|P_ALLOCED|P_VI_DEF|P_SECURE|P_FUNC,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002470#ifdef FEAT_EVAL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002471 (char_u *)&p_tfu, PV_TFU, did_set_tagfunc,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002472 {(char_u *)"", (char_u *)0L}
2473#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002474 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002475 {(char_u *)0L, (char_u *)0L}
2476#endif
2477 SCTX_INIT},
2478 {"taglength", "tl", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002479 (char_u *)&p_tl, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002480 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2481 {"tagrelative", "tr", P_BOOL|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002482 (char_u *)&p_tr, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002483 {(char_u *)FALSE, (char_u *)TRUE} SCTX_INIT},
2484 {"tags", "tag", P_STRING|P_EXPAND|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002485 (char_u *)&p_tags, PV_TAGS, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002486 {
2487#if defined(FEAT_EMACS_TAGS) && !defined(CASE_INSENSITIVE_FILENAME)
2488 (char_u *)"./tags,./TAGS,tags,TAGS",
2489#else
2490 (char_u *)"./tags,tags",
2491#endif
2492 (char_u *)0L} SCTX_INIT},
2493 {"tagstack", "tgst", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002494 (char_u *)&p_tgst, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002495 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
2496 {"tcldll", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
2497#if defined(DYNAMIC_TCL)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002498 (char_u *)&p_tcldll, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002499 {(char_u *)DYNAMIC_TCL_DLL, (char_u *)0L}
2500#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002501 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002502 {(char_u *)0L, (char_u *)0L}
2503#endif
2504 SCTX_INIT},
2505 {"term", NULL, P_STRING|P_EXPAND|P_NODEFAULT|P_NO_MKRC|P_VI_DEF|P_RALL,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002506 (char_u *)&T_NAME, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002507 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2508 {"termbidi", "tbidi", P_BOOL|P_VI_DEF,
2509#ifdef FEAT_ARABIC
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002510 (char_u *)&p_tbidi, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002511#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002512 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002513#endif
2514 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2515 {"termencoding", "tenc", P_STRING|P_VI_DEF|P_RCLR,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002516 (char_u *)&p_tenc, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002517 {(char_u *)"", (char_u *)0L}
2518 SCTX_INIT},
2519 {"termguicolors", "tgc", P_BOOL|P_VI_DEF|P_VIM|P_RCLR,
2520#ifdef FEAT_TERMGUICOLORS
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002521 (char_u *)&p_tgc, PV_NONE, did_set_termguicolors,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002522 {(char_u *)FALSE, (char_u *)FALSE}
2523#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002524 (char_u*)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002525 {(char_u *)FALSE, (char_u *)FALSE}
2526#endif
2527 SCTX_INIT},
2528 {"termwinkey", "twk", P_STRING|P_ALLOCED|P_RWIN|P_VI_DEF,
2529#ifdef FEAT_TERMINAL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002530 (char_u *)VAR_WIN, PV_TWK, did_set_termwinkey,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002531 {(char_u *)"", (char_u *)NULL}
2532#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002533 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002534 {(char_u *)NULL, (char_u *)0L}
2535#endif
2536 SCTX_INIT},
2537 {"termwinscroll", "twsl", P_NUM|P_VI_DEF|P_VIM|P_RBUF,
2538#ifdef FEAT_TERMINAL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002539 (char_u *)&p_twsl, PV_TWSL, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002540 {(char_u *)10000L, (char_u *)10000L}
2541#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002542 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002543 {(char_u *)NULL, (char_u *)0L}
2544#endif
2545 SCTX_INIT},
2546 {"termwinsize", "tws", P_STRING|P_ALLOCED|P_RWIN|P_VI_DEF,
2547#ifdef FEAT_TERMINAL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002548 (char_u *)VAR_WIN, PV_TWS, did_set_termwinsize,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002549 {(char_u *)"", (char_u *)NULL}
2550#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002551 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002552 {(char_u *)NULL, (char_u *)0L}
2553#endif
2554 SCTX_INIT},
2555 {"termwintype", "twt", P_STRING|P_ALLOCED|P_VI_DEF,
2556#if defined(MSWIN) && defined(FEAT_TERMINAL)
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +00002557 (char_u *)&p_twt, PV_NONE, did_set_termwintype,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002558 {(char_u *)"", (char_u *)NULL}
2559#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002560 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002561 {(char_u *)NULL, (char_u *)0L}
2562#endif
2563 SCTX_INIT},
2564 {"terse", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002565 (char_u *)&p_terse, PV_NONE, did_set_terse,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002566 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2567 {"textauto", "ta", P_BOOL|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002568 (char_u *)&p_ta, PV_NONE, did_set_textauto,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002569 {(char_u *)DFLT_TEXTAUTO, (char_u *)TRUE}
2570 SCTX_INIT},
2571 {"textmode", "tx", P_BOOL|P_VI_DEF|P_NO_MKRC,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002572 (char_u *)&p_tx, PV_TX, did_set_textmode,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002573 {
2574#ifdef USE_CRNL
2575 (char_u *)TRUE,
2576#else
2577 (char_u *)FALSE,
2578#endif
2579 (char_u *)0L} SCTX_INIT},
2580 {"textwidth", "tw", P_NUM|P_VI_DEF|P_VIM|P_RBUF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002581 (char_u *)&p_tw, PV_TW, did_set_textwidth,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002582 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2583 {"thesaurus", "tsr", P_STRING|P_EXPAND|P_VI_DEF|P_ONECOMMA|P_NODUP|P_NDNAME,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002584 (char_u *)&p_tsr, PV_TSR, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002585 {(char_u *)"", (char_u *)0L} SCTX_INIT},
Yegappan Lakshmanan64095532021-12-06 11:03:55 +00002586 {"thesaurusfunc", "tsrfu", P_STRING|P_ALLOCED|P_VI_DEF|P_SECURE|P_FUNC,
Yegappan Lakshmanan160e9942021-10-16 15:41:29 +01002587#ifdef FEAT_COMPL_FUNC
Bram Moolenaarf4d8b762021-10-17 14:13:09 +01002588 (char_u *)&p_tsrfu, PV_TSRFU,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002589 did_set_thesaurusfunc,
Yegappan Lakshmanan160e9942021-10-16 15:41:29 +01002590 {(char_u *)"", (char_u *)0L}
2591#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002592 (char_u *)NULL, PV_NONE, NULL,
Yegappan Lakshmanan160e9942021-10-16 15:41:29 +01002593 {(char_u *)0L, (char_u *)0L}
2594#endif
2595 SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002596 {"tildeop", "top", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002597 (char_u *)&p_to, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002598 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2599 {"timeout", "to", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002600 (char_u *)&p_timeout, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002601 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
2602 {"timeoutlen", "tm", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002603 (char_u *)&p_tm, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002604 {(char_u *)1000L, (char_u *)0L} SCTX_INIT},
2605 {"title", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002606 (char_u *)&p_title, PV_NONE, did_set_title_icon,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002607 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2608 {"titlelen", NULL, P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002609 (char_u *)&p_titlelen, PV_NONE, did_set_titlelen,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002610 {(char_u *)85L, (char_u *)0L} SCTX_INIT},
2611 {"titleold", NULL, P_STRING|P_VI_DEF|P_GETTEXT|P_SECURE|P_NO_MKRC,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002612 (char_u *)&p_titleold, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002613 {(char_u *)N_("Thanks for flying Vim"),
2614 (char_u *)0L}
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002615 SCTX_INIT},
2616 {"titlestring", NULL, P_STRING|P_VI_DEF|P_MLE,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002617 (char_u *)&p_titlestring, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002618 did_set_titlestring,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002619 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2620 {"toolbar", "tb", P_STRING|P_ONECOMMA|P_VI_DEF|P_NODUP,
2621#if defined(FEAT_TOOLBAR) && !defined(FEAT_GUI_MSWIN)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002622 (char_u *)&p_toolbar, PV_NONE, did_set_toolbar,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002623 {(char_u *)"icons,tooltips", (char_u *)0L}
2624#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002625 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002626 {(char_u *)0L, (char_u *)0L}
2627#endif
2628 SCTX_INIT},
2629 {"toolbariconsize", "tbis", P_STRING|P_VI_DEF,
2630#if defined(FEAT_TOOLBAR) && defined(FEAT_GUI_GTK)
2631 (char_u *)&p_tbis, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002632 did_set_toolbariconsize,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002633 {(char_u *)"small", (char_u *)0L}
2634#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002635 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002636 {(char_u *)0L, (char_u *)0L}
2637#endif
2638 SCTX_INIT},
2639 {"ttimeout", NULL, P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002640 (char_u *)&p_ttimeout, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002641 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2642 {"ttimeoutlen", "ttm", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002643 (char_u *)&p_ttm, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002644 {(char_u *)-1L, (char_u *)0L} SCTX_INIT},
2645 {"ttybuiltin", "tbi", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002646 (char_u *)&p_tbi, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002647 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
2648 {"ttyfast", "tf", P_BOOL|P_NO_MKRC|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002649 (char_u *)&p_tf, PV_NONE, NULL,
Bram Moolenaarc1cf4c92022-11-25 15:09:35 +00002650 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002651 {"ttymouse", "ttym", P_STRING|P_NODEFAULT|P_NO_MKRC|P_VI_DEF,
Bram Moolenaara1cb1d12019-10-17 23:00:07 +02002652#if defined(UNIX) || defined(VMS)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002653 (char_u *)&p_ttym, PV_NONE, did_set_ttymouse,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002654#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002655 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002656#endif
2657 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2658 {"ttyscroll", "tsl", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002659 (char_u *)&p_ttyscroll, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002660 {(char_u *)999L, (char_u *)0L} SCTX_INIT},
2661 {"ttytype", "tty", P_STRING|P_EXPAND|P_NODEFAULT|P_NO_MKRC|P_VI_DEF|P_RALL,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002662 (char_u *)&T_NAME, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002663 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2664 {"undodir", "udir", P_STRING|P_EXPAND|P_ONECOMMA|P_NODUP|P_SECURE
2665 |P_VI_DEF,
2666#ifdef FEAT_PERSISTENT_UNDO
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002667 (char_u *)&p_udir, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002668 {(char_u *)".", (char_u *)0L}
2669#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002670 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002671 {(char_u *)0L, (char_u *)0L}
2672#endif
2673 SCTX_INIT},
2674 {"undofile", "udf", P_BOOL|P_VI_DEF|P_VIM,
2675#ifdef FEAT_PERSISTENT_UNDO
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002676 (char_u *)&p_udf, PV_UDF, did_set_undofile,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002677#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002678 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002679#endif
2680 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2681 {"undolevels", "ul", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002682 (char_u *)&p_ul, PV_UL, did_set_undolevels,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002683 {
2684#if defined(UNIX) || defined(MSWIN) || defined(VMS)
2685 (char_u *)1000L,
2686#else
2687 (char_u *)100L,
2688#endif
2689 (char_u *)0L} SCTX_INIT},
2690 {"undoreload", "ur", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002691 (char_u *)&p_ur, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002692 { (char_u *)10000L, (char_u *)0L} SCTX_INIT},
2693 {"updatecount", "uc", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002694 (char_u *)&p_uc, PV_NONE, did_set_updatecount,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002695 {(char_u *)200L, (char_u *)0L} SCTX_INIT},
2696 {"updatetime", "ut", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002697 (char_u *)&p_ut, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002698 {(char_u *)4000L, (char_u *)0L} SCTX_INIT},
2699 {"varsofttabstop", "vsts", P_STRING|P_VI_DEF|P_VIM|P_COMMA,
2700#ifdef FEAT_VARTABS
2701 (char_u *)&p_vsts, PV_VSTS,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002702 did_set_varsofttabstop,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002703 {(char_u *)"", (char_u *)0L}
2704#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002705 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002706 {(char_u *)"", (char_u *)NULL}
2707#endif
2708 SCTX_INIT},
2709 {"vartabstop", "vts", P_STRING|P_VI_DEF|P_VIM|P_RBUF|P_COMMA,
2710#ifdef FEAT_VARTABS
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002711 (char_u *)&p_vts, PV_VTS, did_set_vartabstop,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002712 {(char_u *)"", (char_u *)0L}
2713#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002714 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002715 {(char_u *)"", (char_u *)NULL}
2716#endif
2717 SCTX_INIT},
2718 {"verbose", "vbs", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002719 (char_u *)&p_verbose, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002720 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2721 {"verbosefile", "vfile", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002722 (char_u *)&p_vfile, PV_NONE, did_set_verbosefile,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002723 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2724 {"viewdir", "vdir", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
2725#ifdef FEAT_SESSION
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002726 (char_u *)&p_vdir, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002727 {(char_u *)DFLT_VDIR, (char_u *)0L}
2728#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002729 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002730 {(char_u *)0L, (char_u *)0L}
2731#endif
2732 SCTX_INIT},
2733 {"viewoptions", "vop", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
2734#ifdef FEAT_SESSION
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +00002735 (char_u *)&p_vop, PV_NONE, did_set_viewoptions,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002736 {(char_u *)"folds,options,cursor,curdir",
2737 (char_u *)0L}
2738#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002739 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002740 {(char_u *)0L, (char_u *)0L}
2741#endif
2742 SCTX_INIT},
2743 {"viminfo", "vi", P_STRING|P_ONECOMMA|P_NODUP|P_SECURE,
2744#ifdef FEAT_VIMINFO
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002745 (char_u *)&p_viminfo, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002746#if defined(MSWIN)
2747 {(char_u *)"", (char_u *)"'100,<50,s10,h,rA:,rB:"}
ichizok02560422022-04-05 14:18:44 +01002748#elif defined(AMIGA)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002749 {(char_u *)"",
2750 (char_u *)"'100,<50,s10,h,rdf0:,rdf1:,rdf2:"}
ichizok02560422022-04-05 14:18:44 +01002751#else
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002752 {(char_u *)"", (char_u *)"'100,<50,s10,h"}
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002753#endif
2754#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002755 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002756 {(char_u *)0L, (char_u *)0L}
2757#endif
2758 SCTX_INIT},
2759 {"viminfofile", "vif", P_STRING|P_EXPAND|P_ONECOMMA|P_NODUP
2760 |P_SECURE|P_VI_DEF,
2761#ifdef FEAT_VIMINFO
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002762 (char_u *)&p_viminfofile, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002763 {(char_u *)"", (char_u *)0L}
2764#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002765 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002766 {(char_u *)0L, (char_u *)0L}
2767#endif
2768 SCTX_INIT},
2769 {"virtualedit", "ve", P_STRING|P_ONECOMMA|P_NODUP|P_VI_DEF
2770 |P_VIM|P_CURSWANT,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002771 (char_u *)&p_ve, PV_VE, did_set_virtualedit,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002772 {(char_u *)"", (char_u *)""}
2773 SCTX_INIT},
2774 {"visualbell", "vb", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002775 (char_u *)&p_vb, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002776 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2777 {"w300", NULL, P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002778 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002779 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2780 {"w1200", NULL, P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002781 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002782 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2783 {"w9600", NULL, P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002784 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002785 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2786 {"warn", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002787 (char_u *)&p_warn, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002788 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
2789 {"weirdinvert", "wiv", P_BOOL|P_VI_DEF|P_RCLR,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002790 (char_u *)&p_wiv, PV_NONE, did_set_weirdinvert,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002791 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2792 {"whichwrap", "ww", P_STRING|P_VIM|P_ONECOMMA|P_FLAGLIST,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002793 (char_u *)&p_ww, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002794 {(char_u *)"", (char_u *)"b,s"} SCTX_INIT},
2795 {"wildchar", "wc", P_NUM|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002796 (char_u *)&p_wc, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002797 {(char_u *)(long)Ctrl_E, (char_u *)(long)TAB}
2798 SCTX_INIT},
2799 {"wildcharm", "wcm", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002800 (char_u *)&p_wcm, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002801 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2802 {"wildignore", "wig", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002803 (char_u *)&p_wig, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002804 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2805 {"wildignorecase", "wic", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002806 (char_u *)&p_wic, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002807 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2808 {"wildmenu", "wmnu", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002809 (char_u *)&p_wmnu, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002810 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2811 {"wildmode", "wim", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002812 (char_u *)&p_wim, PV_NONE, did_set_wildmode,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002813 {(char_u *)"full", (char_u *)0L} SCTX_INIT},
Bram Moolenaar2e61e2d2020-05-22 14:10:36 +02002814 {"wildoptions", "wop", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +00002815 (char_u *)&p_wop, PV_NONE, did_set_wildoptions,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002816 {(char_u *)"", (char_u *)0L}
2817 SCTX_INIT},
2818 {"winaltkeys", "wak", P_STRING|P_VI_DEF,
2819#ifdef FEAT_WAK
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002820 (char_u *)&p_wak, PV_NONE, did_set_winaltkeys,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002821 {(char_u *)"menu", (char_u *)0L}
2822#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002823 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002824 {(char_u *)NULL, (char_u *)0L}
2825#endif
2826 SCTX_INIT},
2827 {"wincolor", "wcr", P_STRING|P_ALLOCED|P_VI_DEF|P_RWIN,
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +00002828 (char_u *)VAR_WIN, PV_WCR, did_set_wincolor,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002829 {(char_u *)"", (char_u *)NULL}
2830 SCTX_INIT},
2831 {"window", "wi", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002832 (char_u *)&p_window, PV_NONE, did_set_window,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002833 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2834 {"winheight", "wh", P_NUM|P_VI_DEF,
2835 (char_u *)&p_wh, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002836 did_set_winheight_helpheight,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002837 {(char_u *)1L, (char_u *)0L} SCTX_INIT},
2838 {"winfixheight", "wfh", P_BOOL|P_VI_DEF|P_RSTAT,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002839 (char_u *)VAR_WIN, PV_WFH, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002840 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2841 {"winfixwidth", "wfw", P_BOOL|P_VI_DEF|P_RSTAT,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002842 (char_u *)VAR_WIN, PV_WFW, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002843 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2844 {"winminheight", "wmh", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002845 (char_u *)&p_wmh, PV_NONE, did_set_winminheight,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002846 {(char_u *)1L, (char_u *)0L} SCTX_INIT},
2847 {"winminwidth", "wmw", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002848 (char_u *)&p_wmw, PV_NONE, did_set_winminwidth,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002849 {(char_u *)1L, (char_u *)0L} SCTX_INIT},
2850 {"winptydll", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
2851#if defined(MSWIN) && defined(FEAT_TERMINAL)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002852 (char_u *)&p_winptydll, PV_NONE, NULL, {
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002853# ifdef _WIN64
2854 (char_u *)"winpty64.dll",
2855# else
2856 (char_u *)"winpty32.dll",
2857# endif
2858 (char_u *)0L}
2859#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002860 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002861 {(char_u *)0L, (char_u *)0L}
2862#endif
2863 SCTX_INIT},
2864 {"winwidth", "wiw", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002865 (char_u *)&p_wiw, PV_NONE, did_set_winwidth,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002866 {(char_u *)20L, (char_u *)0L} SCTX_INIT},
2867 {"wrap", NULL, P_BOOL|P_VI_DEF|P_RWIN,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002868 (char_u *)VAR_WIN, PV_WRAP, did_set_wrap,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002869 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
2870 {"wrapmargin", "wm", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002871 (char_u *)&p_wm, PV_WM, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002872 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2873 {"wrapscan", "ws", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002874 (char_u *)&p_ws, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002875 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
2876 {"write", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002877 (char_u *)&p_write, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002878 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
2879 {"writeany", "wa", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002880 (char_u *)&p_wa, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002881 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2882 {"writebackup", "wb", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002883 (char_u *)&p_wb, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002884 {
2885#ifdef FEAT_WRITEBACKUP
2886 (char_u *)TRUE,
2887#else
2888 (char_u *)FALSE,
2889#endif
2890 (char_u *)0L} SCTX_INIT},
2891 {"writedelay", "wd", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002892 (char_u *)&p_wd, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002893 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
Bram Moolenaar6f79e612021-12-21 09:12:23 +00002894 {"xtermcodes", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002895 (char_u *)&p_xtermcodes, PV_NONE, NULL,
Bram Moolenaar6f79e612021-12-21 09:12:23 +00002896 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002897
2898// terminal output codes
Bram Moolenaarebfec1c2023-01-22 21:14:53 +00002899#define p_term(sss, vvv) \
2900 {sss, NULL, P_STRING|P_VI_DEF|P_RALL|P_SECURE, \
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002901 (char_u *)&vvv, PV_NONE, NULL, \
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002902 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2903
2904 p_term("t_AB", T_CAB)
2905 p_term("t_AF", T_CAF)
Bram Moolenaare023e882020-05-31 16:42:30 +02002906 p_term("t_AU", T_CAU)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002907 p_term("t_AL", T_CAL)
2908 p_term("t_al", T_AL)
2909 p_term("t_bc", T_BC)
2910 p_term("t_BE", T_BE)
2911 p_term("t_BD", T_BD)
2912 p_term("t_cd", T_CD)
2913 p_term("t_ce", T_CE)
Bram Moolenaar84f54632022-06-29 18:39:11 +01002914 p_term("t_Ce", T_UCE)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002915 p_term("t_cl", T_CL)
2916 p_term("t_cm", T_CM)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002917 p_term("t_Co", T_CCO)
2918 p_term("t_CS", T_CCS)
2919 p_term("t_Cs", T_UCS)
2920 p_term("t_cs", T_CS)
2921 p_term("t_CV", T_CSV)
2922 p_term("t_da", T_DA)
2923 p_term("t_db", T_DB)
2924 p_term("t_DL", T_CDL)
2925 p_term("t_dl", T_DL)
Bram Moolenaar84f54632022-06-29 18:39:11 +01002926 p_term("t_ds", T_DS)
2927 p_term("t_Ds", T_CDS)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002928 p_term("t_EC", T_CEC)
2929 p_term("t_EI", T_CEI)
2930 p_term("t_fs", T_FS)
Bram Moolenaar681fc3f2021-01-14 17:35:21 +01002931 p_term("t_fd", T_FD)
2932 p_term("t_fe", T_FE)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002933 p_term("t_GP", T_CGP)
2934 p_term("t_IE", T_CIE)
2935 p_term("t_IS", T_CIS)
2936 p_term("t_ke", T_KE)
2937 p_term("t_ks", T_KS)
2938 p_term("t_le", T_LE)
2939 p_term("t_mb", T_MB)
2940 p_term("t_md", T_MD)
2941 p_term("t_me", T_ME)
2942 p_term("t_mr", T_MR)
2943 p_term("t_ms", T_MS)
2944 p_term("t_nd", T_ND)
2945 p_term("t_op", T_OP)
2946 p_term("t_RF", T_RFG)
2947 p_term("t_RB", T_RBG)
2948 p_term("t_RC", T_CRC)
2949 p_term("t_RI", T_CRI)
2950 p_term("t_Ri", T_SRI)
Bram Moolenaar184a6222022-12-01 19:25:04 +00002951 p_term("t_RK", T_CRK)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002952 p_term("t_RS", T_CRS)
2953 p_term("t_RT", T_CRT)
2954 p_term("t_RV", T_CRV)
2955 p_term("t_Sb", T_CSB)
2956 p_term("t_SC", T_CSC)
2957 p_term("t_se", T_SE)
2958 p_term("t_Sf", T_CSF)
2959 p_term("t_SH", T_CSH)
2960 p_term("t_SI", T_CSI)
2961 p_term("t_Si", T_SSI)
2962 p_term("t_so", T_SO)
2963 p_term("t_SR", T_CSR)
2964 p_term("t_sr", T_SR)
2965 p_term("t_ST", T_CST)
2966 p_term("t_Te", T_STE)
2967 p_term("t_te", T_TE)
Bram Moolenaar171a9212019-10-12 21:08:59 +02002968 p_term("t_TE", T_CTE)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002969 p_term("t_ti", T_TI)
Bram Moolenaar171a9212019-10-12 21:08:59 +02002970 p_term("t_TI", T_CTI)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002971 p_term("t_Ts", T_STS)
2972 p_term("t_ts", T_TS)
2973 p_term("t_u7", T_U7)
2974 p_term("t_ue", T_UE)
2975 p_term("t_us", T_US)
Bram Moolenaar84f54632022-06-29 18:39:11 +01002976 p_term("t_Us", T_USS)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002977 p_term("t_ut", T_UT)
2978 p_term("t_vb", T_VB)
2979 p_term("t_ve", T_VE)
2980 p_term("t_vi", T_VI)
2981 p_term("t_VS", T_CVS)
2982 p_term("t_vs", T_VS)
2983 p_term("t_WP", T_CWP)
2984 p_term("t_WS", T_CWS)
Bram Moolenaar06cd14d2023-01-10 12:37:38 +00002985 p_term("t_XM", T_CXM)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002986 p_term("t_xn", T_XN)
2987 p_term("t_xs", T_XS)
2988 p_term("t_ZH", T_CZH)
2989 p_term("t_ZR", T_CZR)
2990 p_term("t_8f", T_8F)
2991 p_term("t_8b", T_8B)
Bram Moolenaare023e882020-05-31 16:42:30 +02002992 p_term("t_8u", T_8U)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002993
2994// terminal key codes are not in here
2995
2996 // end marker
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002997 {NULL, NULL, 0, NULL, PV_NONE, NULL, {NULL, NULL} SCTX_INIT}
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002998};
2999
K.Takataeeec2542021-06-02 13:28:16 +02003000#define OPTION_COUNT ARRAY_LENGTH(options)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02003001
Bram Moolenaardac13472019-09-16 21:06:21 +02003002// The following is needed to make the gen_opt_test.vim script work.
3003// {"