option.h
Go to the documentation of this file.
1 #ifndef NVIM_OPTION_H
2 #define NVIM_OPTION_H
3 
4 #include "nvim/ex_cmds_defs.h" // for exarg_T
5 
6 // flags for buf_copy_options()
7 #define BCO_ENTER 1 // going to enter the buffer
8 #define BCO_ALWAYS 2 // always copy the options
9 #define BCO_NOHELP 4 // don't touch the help related options
10 
15 typedef enum {
16  OPT_FREE = 1,
17  OPT_GLOBAL = 2,
18  OPT_LOCAL = 4,
20  OPT_WINONLY = 16,
21  OPT_NOWIN = 32,
23  OPT_NO_REDRAW = 128,
24  OPT_SKIPRTP = 256,
25 } OptionFlags;
26 
27 #ifdef INCLUDE_GENERATED_DECLARATIONS
28 # include "option.h.generated.h"
29 #endif
30 #endif // NVIM_OPTION_H
OptionFlags
OptionFlags
Definition: option.h:15
OPT_MODELINE
@ OPT_MODELINE
Option in modeline.
Definition: option.h:19
OPT_WINONLY
@ OPT_WINONLY
Only set window-local options.
Definition: option.h:20
OPT_NO_REDRAW
@ OPT_NO_REDRAW
ignore redraw flags on option
Definition: option.h:23
OPT_ONECOLUMN
@ OPT_ONECOLUMN
list options one per line
Definition: option.h:22
OPT_LOCAL
@ OPT_LOCAL
Use local value.
Definition: option.h:18
OPT_FREE
@ OPT_FREE
Free old value if it was allocated.
Definition: option.h:16
OPT_SKIPRTP
@ OPT_SKIPRTP
"skiprtp" in 'sessionoptions'
Definition: option.h:24
OPT_NOWIN
@ OPT_NOWIN
Don’t set window-local options.
Definition: option.h:21
ex_cmds_defs.h
OPT_GLOBAL
@ OPT_GLOBAL
Use global value.
Definition: option.h:17