-
Notifications
You must be signed in to change notification settings - Fork 89
/
ViCommand.h
41 lines (36 loc) · 956 Bytes
/
ViCommand.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#import "ViMap.h"
@interface ViCommand : NSObject
{
ViMapping *mapping;
ViCommand *motion;
ViCommand *operator;
BOOL fromDot;
BOOL isLineMode;
int count;
int saved_count;
unichar argument;
unichar reg;
id text;
}
@property (readonly) ViMapping *mapping;
@property (readwrite) int count;
@property (readwrite) BOOL fromDot;
@property (readwrite) BOOL isLineMode;
@property (readonly) BOOL isMotion;
@property (readonly) BOOL hasOperator;
@property (readwrite) unichar argument;
@property (readwrite) unichar reg;
@property (readwrite) ViCommand *motion;
@property (readwrite) ViCommand *operator;
@property (readwrite) id text;
+ (ViCommand *)commandWithMapping:(ViMapping *)aMapping
count:(int)aCount;
- (ViCommand *)initWithMapping:(ViMapping *)aMapping
count:(int)aCount;
- (SEL)action;
- (BOOL)isMotion;
- (BOOL)isUndo;
- (BOOL)isDot;
- (BOOL)hasOperator;
- (ViCommand *)dotCopy;
@end