Data Structures | Macros | Typedefs
ex_cmds_defs.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include "nvim/pos.h"
#include "nvim/normal.h"
#include "nvim/regexp_defs.h"

Go to the source code of this file.

Data Structures

struct  cmdname
 Structure for command definition. More...
 
struct  exarg
 Arguments used for Ex commands. More...
 
struct  expand
 
struct  cmdmod_T
 

Macros

#define RANGE   0x001 /* allow a linespecs */
 
#define BANG   0x002 /* allow a ! after the command name */
 
#define EXTRA   0x004 /* allow extra args after command name */
 
#define XFILE   0x008 /* expand wildcards in extra part */
 
#define NOSPC   0x010 /* no spaces allowed in the extra part */
 
#define DFLALL   0x020 /* default file range is 1,$ */
 
#define WHOLEFOLD
 
#define NEEDARG   0x080 /* argument required */
 
#define TRLBAR   0x100 /* check for trailing vertical bar */
 
#define REGSTR   0x200 /* allow "x for register designation */
 
#define COUNT   0x400 /* allow count in argument, after command */
 
#define NOTRLCOM   0x800 /* no trailing comment allowed */
 
#define ZEROR   0x1000 /* zero line number allowed */
 
#define USECTRLV   0x2000 /* do not remove CTRL-V from argument */
 
#define NOTADR   0x4000 /* number before command is not an address */
 
#define EDITCMD   0x8000 /* allow "+command" argument */
 
#define BUFNAME   0x10000 /* accepts buffer name */
 
#define BUFUNL   0x20000 /* accepts unlisted buffer too */
 
#define ARGOPT   0x40000 /* allow "++opt=val" argument */
 
#define SBOXOK   0x80000 /* allowed in the sandbox */
 
#define CMDWIN
 
#define MODIFY   0x200000 /* forbidden in non-'modifiable' buffer */
 
#define EXFLAGS   0x400000 /* allow flags after count in argument */
 
#define FILES   (XFILE | EXTRA) /* multiple extra files allowed */
 
#define WORD1   (EXTRA | NOSPC) /* one extra word allowed */
 
#define FILE1   (FILES | NOSPC) /* 1 file allowed, defaults to current file */
 
#define ADDR_LINES   0
 
#define ADDR_WINDOWS   1
 
#define ADDR_ARGUMENTS   2
 
#define ADDR_LOADED_BUFFERS   3
 
#define ADDR_BUFFERS   4
 
#define ADDR_TABS   5
 
#define ADDR_TABS_RELATIVE   6
 
#define ADDR_QUICKFIX   7
 
#define ADDR_OTHER   99
 
#define BAD_REPLACE   '?' /* replace it with '?' (default) */
 
#define BAD_KEEP   -1 /* leave it */
 
#define BAD_DROP   -2 /* erase it */
 
#define FORCE_BIN   1
 
#define FORCE_NOBIN   2
 
#define EXFLAG_LIST   0x01
 
#define EXFLAG_NR   0x02
 
#define EXFLAG_PRINT   0x04
 
#define XP_BS_NONE   0
 
#define XP_BS_ONE   1
 
#define XP_BS_THREE   2
 

Typedefs

typedef struct exarg exarg_T
 
typedef void(* ex_func_T) (exarg_T *eap)
 
typedef char_u *(* LineGetter) (int, void *, int)
 
typedef struct cmdname CommandDefinition
 Structure for command definition. More...
 

Macro Definition Documentation

#define ADDR_ARGUMENTS   2
#define ADDR_BUFFERS   4
#define ADDR_LINES   0
#define ADDR_LOADED_BUFFERS   3
#define ADDR_OTHER   99
#define ADDR_QUICKFIX   7
#define ADDR_TABS   5
#define ADDR_TABS_RELATIVE   6
#define ADDR_WINDOWS   1
#define ARGOPT   0x40000 /* allow "++opt=val" argument */
#define BAD_DROP   -2 /* erase it */
#define BAD_KEEP   -1 /* leave it */
#define BAD_REPLACE   '?' /* replace it with '?' (default) */
#define BANG   0x002 /* allow a ! after the command name */
#define BUFNAME   0x10000 /* accepts buffer name */
#define BUFUNL   0x20000 /* accepts unlisted buffer too */
#define CMDWIN
Value:
0x100000 /* allowed in cmdline window; when missing
* disallows editing another buffer when
* curbuf_lock is set */
#define COUNT   0x400 /* allow count in argument, after command */
#define DFLALL   0x020 /* default file range is 1,$ */
#define EDITCMD   0x8000 /* allow "+command" argument */
#define EXFLAG_LIST   0x01
#define EXFLAG_NR   0x02
#define EXFLAG_PRINT   0x04
#define EXFLAGS   0x400000 /* allow flags after count in argument */
#define EXTRA   0x004 /* allow extra args after command name */
#define FILE1   (FILES | NOSPC) /* 1 file allowed, defaults to current file */
#define FILES   (XFILE | EXTRA) /* multiple extra files allowed */
#define FORCE_BIN   1
#define FORCE_NOBIN   2
#define MODIFY   0x200000 /* forbidden in non-'modifiable' buffer */
#define NEEDARG   0x080 /* argument required */
#define NOSPC   0x010 /* no spaces allowed in the extra part */
#define NOTADR   0x4000 /* number before command is not an address */
#define NOTRLCOM   0x800 /* no trailing comment allowed */
#define RANGE   0x001 /* allow a linespecs */
#define REGSTR   0x200 /* allow "x for register designation */
#define SBOXOK   0x80000 /* allowed in the sandbox */
#define TRLBAR   0x100 /* check for trailing vertical bar */
#define USECTRLV   0x2000 /* do not remove CTRL-V from argument */
#define WHOLEFOLD
Value:
0x040 /* extend range to include whole fold also
when less than two numbers given */
#define WORD1   (EXTRA | NOSPC) /* one extra word allowed */
#define XFILE   0x008 /* expand wildcards in extra part */
#define XP_BS_NONE   0
#define XP_BS_ONE   1
#define XP_BS_THREE   2
#define ZEROR   0x1000 /* zero line number allowed */

Typedef Documentation

typedef struct cmdname CommandDefinition

Structure for command definition.

typedef void(* ex_func_T) (exarg_T *eap)
typedef struct exarg exarg_T
typedef char_u*(* LineGetter) (int, void *, int)