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,
22 } OptionFlags;
23 
24 #ifdef INCLUDE_GENERATED_DECLARATIONS
25 # include "option.h.generated.h"
26 #endif
27 #endif // NVIM_OPTION_H
Use global value.
Definition: option.h:17
Use local value.
Definition: option.h:18
Option in modeline.
Definition: option.h:19
OptionFlags
Definition: option.h:15
Don’t set window-local options.
Definition: option.h:21
Only set window-local options.
Definition: option.h:20
Free old value if it was allocated.
Definition: option.h:16