1 | #ifndef NVIM_EX_CMDS_H |
2 | #define NVIM_EX_CMDS_H |
3 | |
4 | #include <stdbool.h> |
5 | |
6 | #include "nvim/os/time.h" |
7 | #include "nvim/pos.h" |
8 | #include "nvim/eval/typval.h" |
9 | #include "nvim/buffer_defs.h" |
10 | #include "nvim/ex_cmds_defs.h" |
11 | |
12 | // flags for do_ecmd() |
13 | #define ECMD_HIDE 0x01 // don't free the current buffer |
14 | #define ECMD_SET_HELP 0x02 // set b_help flag of (new) buffer before |
15 | // opening file |
16 | #define ECMD_OLDBUF 0x04 // use existing buffer if it exists |
17 | #define ECMD_FORCEIT 0x08 // ! used in Ex command |
18 | #define ECMD_ADDBUF 0x10 // don't edit, just add to buffer list |
19 | |
20 | |
21 | /* for lnum argument in do_ecmd() */ |
22 | #define ECMD_LASTL (linenr_T)0 /* use last position in loaded file */ |
23 | #define ECMD_LAST (linenr_T)-1 /* use last position in all files */ |
24 | #define ECMD_ONE (linenr_T)1 /* use first line */ |
25 | |
26 | /// Previous :substitute replacement string definition |
27 | typedef struct { |
28 | char *sub; ///< Previous replacement string. |
29 | Timestamp timestamp; ///< Time when it was last set. |
30 | list_T *additional_elements; ///< Additional data left from ShaDa file. |
31 | } SubReplacementString; |
32 | |
33 | #ifdef INCLUDE_GENERATED_DECLARATIONS |
34 | # include "ex_cmds.h.generated.h" |
35 | #endif |
36 | #endif // NVIM_EX_CMDS_H |
37 | |