-
Notifications
You must be signed in to change notification settings - Fork 4
/
Vimulator_keys.props
215 lines (202 loc) · 8.15 KB
/
Vimulator_keys.props
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
# Keybindings for the vi Modes
# Structure:
# vimulator.keys.MODE.ACTION=KEYBINDING
# where
# - mode refers to either insert, command, visual or visual-block
# - action refers to an action (see jEdit.getActionNames())
# - keybinding refers to the letter code of some combination of keys
# i.g. if there exists a standard action conducting some operation, we try to use it.
# Otherwise a derived method called "vi-OPNAME" is created in actions.xml
# Insert mode
vimulator.keys.insert.vi-command-mode=ESCAPE
vimulator.keys.insert.vi-command-mode.2=C+[
vimulator.keys.insert.vi-command-mode.3=C+C
vimulator.keys.insert.prev-word=S+LEFT
vimulator.keys.insert.next-word=S+RIGHT
vimulator.keys.insert.prev-page=S+UP
vimulator.keys.insert.prev-page.2=PAGE_UP
vimulator.keys.insert.next-page=S+DOWN
vimulator.keys.insert.next-page.2=PAGE_DOWN
# Command mode
vimulator.keys.command.vi-prev-col=H
vimulator.keys.command.vi-prev-col.2=C+H
vimulator.keys.command.vi-prev-col.3=BACK_SPACE
vimulator.keys.command.vi-prev-col.4=LEFT
vimulator.keys.command.vi-next-col=L
vimulator.keys.command.vi-next-col.2=SPACE
vimulator.keys.command.vi-next-col.3=RIGHT
vimulator.keys.command.vi-home-abs=0
vimulator.keys.command.vi-home-abs.2=HOME
vimulator.keys.command.vi-home-ws=^
vimulator.keys.command.vi-end-abs=$
vimulator.keys.command.prev-line=K
vimulator.keys.command.prev-line.2=C+P
vimulator.keys.command.prev-line.3=UP
vimulator.keys.command.next-line=J
vimulator.keys.command.next-line.2=C+J
vimulator.keys.command.next-line.3=C+N
vimulator.keys.command.next-line.4=DOWN
vimulator.keys.command.vi-prev-line-ws-start=-
vimulator.keys.command.vi-next-line-ws-start=+
vimulator.keys.command.vi-next-line-ws-start.2=C+M
vimulator.keys.command.vi-next-line-ws-start.3=ENTER
vimulator.keys.command.vi-go-to-line=G G
vimulator.keys.command.document-end=S+G
vimulator.keys.command.document-end.2=C+END
vimulator.keys.command.document-home=C+HOME
vimulator.keys.command.prev-paragraph={
vimulator.keys.command.next-paragraph=}
vimulator.keys.command.vi-word-start=B
vimulator.keys.command.vi-word-end=E
vimulator.keys.command.vi-next-word=W
vimulator.keys.command.delete=X
vimulator.keys.command.backspace=S+X
vimulator.keys.command.vi-join-lines=S+J
vimulator.keys.command.undo=U
vimulator.keys.command.redo=C+R
vimulator.keys.command.vi-insert-mode=I
vimulator.keys.command.vi-insert-ws-start=S+I
vimulator.keys.command.vi-append=A
vimulator.keys.command.vi-append-ws-end=S+A
vimulator.keys.command.vi-replace-char=R
vimulator.keys.command.vi-replace-mode=S+R
vimulator.keys.command.vi-visual-mode=V
vimulator.keys.command.vi-visual-block-mode=C+V
vimulator.keys.command.vi-visual-line-mode=S+V
vimulator.keys.command.vi-open-prev-line=S+O
vimulator.keys.command.vi-open-next-line=O
vimulator.keys.command.prev-page=C+B
vimulator.keys.command.prev-page.2=PAGE_UP
vimulator.keys.command.next-page=C+F
vimulator.keys.command.next-page.2=PAGE_DOWN
vimulator.keys.command.vi-ex-command=:
vimulator.keys.command.vi-end-ex-command=ESCAPE
vimulator.keys.command.vi-end-ex-command.2=C+C
vimulator.keys.command.vi-search=/
vimulator.keys.command.vi-reverse-search=?
vimulator.keys.command.vi-repeat-search=N
vimulator.keys.command.vi-repeat-search-opposite=S+N
vimulator.keys.command.vi-find-char=F
vimulator.keys.command.vi-find-char-reverse=S+F
vimulator.keys.command.vi-find-until-char=T
vimulator.keys.command.vi-find-until-char-reverse=S+T
vimulator.keys.command.vi-repeat-find-char=;
vimulator.keys.command.vi-repeat-find-char-opposite=,
vimulator.keys.command.vi-current-line-status=C+G
vimulator.keys.command.vi-matching-bracket=%
vimulator.keys.command.exit=S+Q
vimulator.keys.command.shift-left=< <
vimulator.keys.command.shift-right=> >
vimulator.keys.command.vi-find-mark=`
vimulator.keys.command.vi-find-mark-line='
vimulator.keys.command.vi-set-mark=m
vimulator.keys.command.split-horizontal=C+W S
vimulator.keys.command.split-vertical=C+W V
vimulator.keys.command.next-buffer=C+W W
vimulator.keys.command.unsplit=C+W O
vimulator.keys.command.collapse-fold=Z F
vimulator.keys.command.collapse-all-folds=Z M
vimulator.keys.command.expand-fold=Z O
vimulator.keys.command.expand-all-folds=Z R
vimulator.keys.command.vi-paste-before=S+P
vimulator.keys.command.vi-paste-after=P
# Deletion
vimulator.keys.command.vi-delete-word-end=D E
vimulator.keys.command.vi-delete-word-start=D B
vimulator.keys.command.vi-delete-end-line=D $
vimulator.keys.command.vi-delete-end-line.2=S+D
vimulator.keys.command.vi-delete-start-line=D 0
vimulator.keys.command.vi-delete-line=D D
# TODO
vimulator.keys.command.vi-delete-next-word=D W
vimulator.keys.command.vi-delete-prev-char=D H
vimulator.keys.command.vi-delete-next-line=D J
vimulator.keys.command.vi-delete-prev-line=D K
vimulator.keys.command.vi-delete-next-char=D L
# Changing
vimulator.keys.command.vi-change-word-end=C E
vimulator.keys.command.vi-change-word-start=C B
vimulator.keys.command.vi-change-end-line=C $
vimulator.keys.command.vi-change-end-line.2=S+C
vimulator.keys.command.vi-change-start-line=C 0
vimulator.keys.command.vi-change-line=C C
# technically also a change, but has different key
vimulator.keys.command.vi-change-char=S
vimulator.keys.command.vi-change-line.2=S+S
# TODO
vimulator.keys.command.vi-change-next-word=C W
vimulator.keys.command.vi-change-prev-char=C H
vimulator.keys.command.vi-change-next-line=C J
vimulator.keys.command.vi-change-prev-line=C K
vimulator.keys.command.vi-change-next-char=C L
# Yanking
vimulator.keys.command.vi-yank-line=Y Y
vimulator.keys.command.vi-yank-line.2=S+Y
vimulator.keys.command.vi-yank-end-line=Y $
vimulator.keys.command.vi-yank-start-line=Y 0
vimulator.keys.command.vi-yank-word-end=Y E
vimulator.keys.command.vi-yank-word-start=Y B
# TODO
vimulator.keys.command.vi-yank-next-word=Y W
vimulator.keys.command.vi-yank-prev-char=Y H
vimulator.keys.command.vi-yank-next-line=Y J
vimulator.keys.command.vi-yank-prev-line=Y K
vimulator.keys.command.vi-yank-next-char=Y L
# Visual mode
vimulator.keys.visual.vi-command-mode=ESCAPE
vimulator.keys.visual.vi-command-mode.2=C+[
vimulator.keys.visual.vi-command-mode.3=C+C
vimulator.keys.visual.vi-yank-selection=Y
vimulator.keys.visual.vi-delete-selection=D
vimulator.keys.visual.vi-delete-selection.2=X
vimulator.keys.visual.vi-change-selection=C
vimulator.keys.visual.vi-paste-selection=P
vimulator.keys.visual.select-next-line=J
vimulator.keys.visual.select-next-line.2=DOWN
vimulator.keys.visual.select-next-line.3=C+J
vimulator.keys.visual.select-next-line.4=C+N
vimulator.keys.visual.select-prev-line=K
vimulator.keys.visual.select-prev-line.2=UP
vimulator.keys.visual.select-prev-line.3=C+P
vimulator.keys.visual.vi-select-home-ws=^
vimulator.keys.visual.select-line-end=$
vimulator.keys.visual.select-line-home=0
vimulator.keys.visual.vi-select-next-col=L
vimulator.keys.visual.vi-select-next-col.2=SPACE
vimulator.keys.visual.vi-select-next-col.3=RIGHT
vimulator.keys.visual.vi-select-prev-col=H
vimulator.keys.visual.vi-select-prev-col.2=C+H
vimulator.keys.visual.vi-select-prev-col.3=LEFT
vimulator.keys.visual.vi-select-prev-col.4=BACK_SPACE
vimulator.keys.visual.vi-insert-mode=I
vimulator.keys.visual.vi-multiline-insert=S+I
vimulator.keys.visual.vi-multiline-append=S+A
vimulator.keys.visual.vi-select-word-end=E
vimulator.keys.visual.vi-select-next-word=W
vimulator.keys.visual.vi-select-word-start=B
vimulator.keys.visual.shift-right=>
vimulator.keys.visual.shift-left=<
vimulator.keys.visual.vi-replace-selection=R
vimulator.keys.visual.vi-select-matching-bracket=%
vimulator.keys.visual.vi-select-to-line=G G
vimulator.keys.visual.select-document-end=S+G
vimulator.keys.visual.vi-select-find-mark=`
vimulator.keys.visual.vi-select-find-mark-line='
# Visual block mode
vimulator.keys.visual-block.vi-multiline-change=C
# Visual line mode
# TODO fix selection of last line
vimulator.keys.visual-line.select-next-line=J
vimulator.keys.visual-line.select-prev-line=K
vimulator.keys.visual-line.vi-multiline-change=C
vimulator.keys.visual-line.skip=L
vimulator.keys.visual-line.skip.2=H
vimulator.keys.visual-line.skip.3=E
vimulator.keys.visual-line.skip.4=W
vimulator.keys.visual-line.skip.5=B
# some standard keybindings
vimulator.keys.global.paste=CS+V
vimulator.keys.global.copy=CS+C
vimulator.keys.global.cut=CS+X
vimulator.keys.global.undo=C+Z
vimulator.keys.global.redo=CS+Z