1 #ifndef NVIM_EX_DOCMD_H 2 #define NVIM_EX_DOCMD_H 3 4 #include "nvim/ex_cmds_defs.h" 5 #include "nvim/globals.h" 6 7 // flags for do_cmdline() 8 #define DOCMD_VERBOSE 0x01 // included command in error message 9 #define DOCMD_NOWAIT 0x02 // don't call wait_return() and friends 10 #define DOCMD_REPEAT 0x04 // repeat exec. until getline() returns NULL 11 #define DOCMD_KEYTYPED 0x08 // don't reset KeyTyped 12 #define DOCMD_EXCRESET 0x10 // reset exception environment (for debugging 13 #define DOCMD_KEEPLINE 0x20 // keep typed line for repeating with "." 14 #define DOCMD_PREVIEW 0x40 // during 'inccommand' preview 15 16 // defines for eval_vars() 17 #define VALID_PATH 1 18 #define VALID_HEAD 2 19 20 // Structure used to save the current state. Used when executing Normal mode 21 // commands while in any other mode. 22 typedef struct { 23 int save_msg_scroll; 24 int save_restart_edit; 25 bool save_msg_didout; 26 int save_State; 27 int save_insertmode; 28 bool save_finish_op; 29 long save_opcount; 30 int save_reg_executing; 31 tasave_T tabuf; 32 } save_state_T; 33 34 #ifdef INCLUDE_GENERATED_DECLARATIONS 35 # include "ex_docmd.h.generated.h" 36 #endif 37 #endif // NVIM_EX_DOCMD_H 38