Go to the documentation of this file.
18 #define PUT_FIXINDENT 1 // make indent look nice
19 #define PUT_CURSEND 2 // leave cursor after end of new text
20 #define PUT_CURSLINE 4 // leave cursor on last line of new text
21 #define PUT_LINE 8 // put register as lines
22 #define PUT_LINE_SPLIT 16 // split line for linewise register
23 #define PUT_LINE_FORWARD 32 // put linewise register below Visual sel.
24 #define PUT_BLOCK_INNER 64 // in block mode, do not add trailing spaces
35 #define DELETION_REGISTER 36
36 #define NUM_SAVED_REGISTERS 37
38 #define STAR_REGISTER 37
39 #define PLUS_REGISTER 38
40 #define NUM_REGISTERS 39
43 #define OP_NOP 0 // no pending operation
44 #define OP_DELETE 1 // "d" delete operator
45 #define OP_YANK 2 // "y" yank operator
46 #define OP_CHANGE 3 // "c" change operator
47 #define OP_LSHIFT 4 // "<" left shift operator
48 #define OP_RSHIFT 5 // ">" right shift operator
49 #define OP_FILTER 6 // "!" filter operator
50 #define OP_TILDE 7 // "g~" switch case operator
51 #define OP_INDENT 8 // "=" indent operator
52 #define OP_FORMAT 9 // "gq" format operator
53 #define OP_COLON 10 // ":" colon operator
54 #define OP_UPPER 11 // "gU" make upper case operator
55 #define OP_LOWER 12 // "gu" make lower case operator
56 #define OP_JOIN 13 // "J" join operator, only for Visual mode
57 #define OP_JOIN_NS 14 // "gJ" join operator, only for Visual mode
58 #define OP_ROT13 15 // "g?" rot-13 encoding
59 #define OP_REPLACE 16 // "r" replace chars, only for Visual mode
60 #define OP_INSERT 17 // "I" Insert column, only for Visual mode
61 #define OP_APPEND 18 // "A" Append column, only for Visual mode
62 #define OP_FOLD 19 // "zf" define a fold
63 #define OP_FOLDOPEN 20 // "zo" open folds
64 #define OP_FOLDOPENREC 21 // "zO" open folds recursively
65 #define OP_FOLDCLOSE 22 // "zc" close folds
66 #define OP_FOLDCLOSEREC 23 // "zC" close folds recursively
67 #define OP_FOLDDEL 24 // "zd" delete folds
68 #define OP_FOLDDELREC 25 // "zD" delete folds recursively
69 #define OP_FORMAT2 26 // "gw" format operator, keeps cursor pos
71 #define OP_NR_ADD 28 // "<C-A>" Add to the number or alphabetic
73 #define OP_NR_SUB 29 // "<C-X>" Subtract from the number or
105 static inline int op_reg_index(
const int regname)
108 if (ascii_isdigit(regname)) {
109 return regname -
'0';
114 }
else if (regname ==
'-') {
116 }
else if (regname ==
'*') {
118 }
else if (regname ==
'+') {
125 #ifdef INCLUDE_GENERATED_DECLARATIONS
126 # include "ops.h.generated.h"
#define FUNC_ATTR_CONST
Definition: func_attr.h:243
@ YREG_PASTE
Definition: ops.h:95
size_t y_size
Number of lines in y_array.
Definition: ops.h:86
@ kGRegExprSrc
Return expression itself for "=" register.
Definition: ops.h:79
dict_T * additional_data
Additional data from ShaDa file.
Definition: ops.h:90
MotionType y_type
Register type.
Definition: ops.h:87
Timestamp timestamp
Time when register was last modified.
Definition: ops.h:89
#define STAR_REGISTER
Definition: ops.h:38
#define ASCII_ISLOWER(c)
Definition: macros.h:51
int(* Indenter)(void)
Definition: ops.h:15
#define CHAR_ORD_LOW(x)
Definition: ascii.h:15
Definition of one register.
Definition: ops.h:84
void(WINAPI *pClosePseudoConsole)(HPCON)
#define DELETION_REGISTER
Definition: ops.h:35
@ YREG_PUT
Definition: ops.h:97
@ kGRegNoExpr
Do not allow expression register.
Definition: ops.h:78
@ kGRegList
Return list.
Definition: ops.h:80
uint64_t Timestamp
Definition: time.h:8
int colnr_T
Column number type.
Definition: pos.h:10
struct yankreg yankreg_T
Definition of one register.
#define ASCII_ISUPPER(c)
Definition: macros.h:52
char ** y_array
Pointer to an array of line pointers.
Definition: ops.h:85
@ YREG_YANK
Definition: ops.h:96
yreg_mode_t
Modes for get_yank_register()
Definition: ops.h:94
#define CHAR_ORD_UP(x)
Definition: ascii.h:16
MotionType
Definition: normal.h:18
Definition: coverity-model.c:40
GRegFlags
Flags for get_reg_contents().
Definition: ops.h:77
#define PLUS_REGISTER
Definition: ops.h:39
colnr_T y_width
Register width (only valid for y_type == kBlockWise).
Definition: ops.h:88