-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVim.json
578 lines (563 loc) · 15.3 KB
/
Vim.json
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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
{
"name": "Vim Template",
"description":"Vim Template",
"author",
"email":"repository",
"version":"0.1",
"sections": {
"Global": {
"Open Help For Keyword",
"description": "Open Help For Keyword"
"code": ":help keyword"
},
"Open File",
"description": "Open File"
"code": ":o file"
},
"Save File As",
"description": "Save File As"
"code": ":saveas file"
},
"Close Current Pane",
"description": "Close Current Pane"
"code": ":close"
},
"Open Man Page For Word Under The Cursor",
"description": "Open Man Page For Word Under The Cursor"
"code": "K"
}
},
"Cursor movement": {
"Move Cursor Left",
"description": "Move Cursor Left"
"code": "h"
},
"Move Cursor Down",
"description": "Move Cursor Down"
"code": "j"
},
"Move Cursor Up",
"description": "Move Cursor Up"
"code": "k"
},
"Move Cursor Right",
"description": "Move Cursor Right"
"code": "l"
},
"Move To Top Of Screen",
"description": "Move To Top Of Screen"
"code": "H"
},
"Move To Middle Of Screen",
"description": "Move To Middle Of Screen"
"code": "M"
},
"Move To Bottom Of Screen",
"description": "Move To Bottom Of Screen"
"code": "L"
},
"Jump Forwards To The Start Of A Word",
"description": "Jump Forwards To The Start Of A Word"
"code": "w"
},
"Jump Forwards To The Start Of A Word (Words Can Contain Punctuation)",
"description": "Jump Forwards To The Start Of A Word (Words Can Contain Punctuation)"
"code": "W"
},
"Jump Forwards To The End Of A Word",
"description": "Jump Forwards To The End Of A Word"
"code": "e"
},
"Jump Forwards To The End Of A Word (Words Can Contain Punctuation)",
"description": "Jump Forwards To The End Of A Word (Words Can Contain Punctuation)"
"code": "E"
},
"Jump Backwards To The Start Of A Word",
"description": "Jump Backwards To The Start Of A Word"
"code": "b"
},
"Jump Backwards To The Start Of A Word (Words Can Contain Punctuation)",
"description": "Jump Backwards To The Start Of A Word (Words Can Contain Punctuation)"
"code": "B"
},
"Move To Matching Character (Default Supported Pairs '()', '{}', '[]' - Use <Code>H Matchpairs</Code> In Vim For More Info)",
"description": "Move To Matching Character (Default Supported Pairs '()', '{}', '[]' - Use <Code>H Matchpairs</Code> In Vim For More Info)"
"code": "%"
},
"Jump To The Start Of The Line",
"description": "Jump To The Start Of The Line"
"code": "0"
},
"Jump To The First Non-Blank Character Of The Line",
"description": "Jump To The First Non-Blank Character Of The Line"
"code": "^"
},
"Jump To The End Of The Line",
"description": "Jump To The End Of The Line"
"code": "$"
},
"Jump To The Last Non-Blank Character Of The Line",
"description": "Jump To The Last Non-Blank Character Of The Line"
"code": "g_"
},
"Go To The First Line Of The Document",
"description": "Go To The First Line Of The Document"
"code": "gg"
},
"Go To The Last Line Of The Document",
"description": "Go To The Last Line Of The Document"
"code": "G"
},
"Go To Line 5",
"description": "Go To Line 5"
"code": "5G"
},
"Jump To Next Occurrence Of Character X",
"description": "Jump To Next Occurrence Of Character X"
"code": "fx"
},
"Jump To Before Next Occurrence Of Character X",
"description": "Jump To Before Next Occurrence Of Character X"
"code": "tx"
},
"Jump To Next Paragraph (Or Function/Block, When Editing Code)",
"description": "Jump To Next Paragraph (Or Function/Block, When Editing Code)"
"code": "}"
},
"Jump To Previous Paragraph (Or Function/Block, When Editing Code)",
"description": "Jump To Previous Paragraph (Or Function/Block, When Editing Code)"
"code": "{"
},
"Center Cursor On Screen",
"description": "Center Cursor On Screen"
"code": "zz"
},
"Move Back One Full Screen",
"description": "Move Back One Full Screen"
"code": "Ctrl + b"
},
"Move Forward One Full Screen",
"description": "Move Forward One Full Screen"
"code": "Ctrl + f"
},
"Move Forward 1/2 A Screen",
"description": "Move Forward 1/2 A Screen"
"code": "Ctrl + d"
},
"Move Back 1/2 A Screen",
"description": "Move Back 1/2 A Screen"
"code": "Ctrl + u"
}
},
"Insert mode - inserting/appending text": {
"Insert Before The Cursor",
"description": "Insert Before The Cursor"
"code": "i"
},
"Insert At The Beginning Of The Line",
"description": "Insert At The Beginning Of The Line"
"code": "I"
},
"Insert (Append) After The Cursor",
"description": "Insert (Append) After The Cursor"
"code": "a"
},
"Insert (Append) At The End Of The Line",
"description": "Insert (Append) At The End Of The Line"
"code": "A"
},
"Append (Open) A New Line Below The Current Line",
"description": "Append (Open) A New Line Below The Current Line"
"code": "o"
},
"Append (Open) A New Line Above The Current Line",
"description": "Append (Open) A New Line Above The Current Line"
"code": "O"
},
"Insert (Append) At The End Of The Word",
"description": "Insert (Append) At The End Of The Word"
"code": "ea"
},
"Exit Insert Mode",
"description": "Exit Insert Mode"
"code": "Esc"
}
},
"Editing": {
"Replace A Single Character",
"description": "Replace A Single Character"
"code": "r"
},
"Join Line Below To The Current One",
"description": "Join Line Below To The Current One"
"code": "J"
},
"Change (Replace) Entire Line",
"description": "Change (Replace) Entire Line"
"code": "cc"
},
"Change (Replace) To The End Of The Word",
"description": "Change (Replace) To The End Of The Word"
"code": "cw"
},
"Change (Replace) To The End Of The Line",
"description": "Change (Replace) To The End Of The Line"
"code": "c$"
},
"Delete Character And Substitute Text",
"description": "Delete Character And Substitute Text"
"code": "s"
},
"Delete Line And Substitute Text (Same As Cc)",
"description": "Delete Line And Substitute Text (Same As Cc)"
"code": "S"
},
"Transpose Two Letters (Delete And Paste)",
"description": "Transpose Two Letters (Delete And Paste)"
"code": "xp"
},
"Undo",
"description": "Undo"
"code": "u"
},
"Redo",
"description": "Redo"
"code": "Ctrl + r"
},
"Repeat Last Command",
"description": "Repeat Last Command"
"code": "."
}
},
"Marking text (visual mode)": {
"Start Visual Mode, Mark Lines, Then Do A Command (Like Y-Yank)",
"description": "Start Visual Mode, Mark Lines, Then Do A Command (Like Y-Yank)"
"code": "v"
},
"Start Linewise Visual Mode",
"description": "Start Linewise Visual Mode"
"code": "V"
},
"Move To Other End Of Marked Area",
"description": "Move To Other End Of Marked Area"
"code": "o"
},
"Start Visual Block Mode",
"description": "Start Visual Block Mode"
"code": "Ctrl + v"
},
"Move To Other Corner Of Block",
"description": "Move To Other Corner Of Block"
"code": "O"
},
"Mark A Word",
"description": "Mark A Word"
"code": "aw"
},
"A Block With ()",
"description": "A Block With ()"
"code": "ab"
},
"A Block With {}",
"description": "A Block With {}"
"code": "aB"
},
"Inner Block With ()",
"description": "Inner Block With ()"
"code": "ib"
},
"Inner Block With {}",
"description": "Inner Block With {}"
"code": "iB"
},
"Exit Visual Mode",
"description": "Exit Visual Mode"
"code": "Esc"
}
},
"Visual commands": {
"Shift Text Right",
"description": "Shift Text Right"
"code": ">"
},
"Shift Text Left",
"description": "Shift Text Left"
"code": "<"
},
"Yank (Copy) Marked Text",
"description": "Yank (Copy) Marked Text"
"code": "y"
},
"Delete Marked Text",
"description": "Delete Marked Text"
"code": "d"
},
"Switch Case",
"description": "Switch Case"
"code": "~"
}
},
"Registers": {
"Show Registers Content",
"description": "Show Registers Content"
"code": ":reg"
},
"Yank Into Register X",
"description": "Yank Into Register X"
"code": ""xy"
},
"Paste Contents Of Register X",
"description": "Paste Contents Of Register X"
"code": ""xp"
}
},
"Marks": {
"List Of Marks",
"description": "List Of Marks"
"code": ":marks"
},
"Set Current Position For Mark A",
"description": "Set Current Position For Mark A"
"code": "ma"
},
"Jump To Position Of Mark A",
"description": "Jump To Position Of Mark A"
"code": "`a"
},
"Yank Text To Position Of Mark A",
"description": "Yank Text To Position Of Mark A"
"code": "y`a"
}
},
"Macros": {
"Record Macro A",
"description": "Record Macro A"
"code": "qa"
},
"Stop Recording Macro",
"description": "Stop Recording Macro"
"code": "q"
},
"Run Macro A",
"description": "Run Macro A"
"code": "@a"
},
"Rerun Last Run Macro",
"description": "Rerun Last Run Macro"
"code": "@@"
}
},
"Cut and paste": {
"Yank (Copy) A Line",
"description": "Yank (Copy) A Line"
"code": "yy"
},
"Yank (Copy) 2 Lines",
"description": "Yank (Copy) 2 Lines"
"code": "2yy"
},
"Yank (Copy) The Characters Of The Word From The Cursor Position To The Start Of The Next Word",
"description": "Yank (Copy) The Characters Of The Word From The Cursor Position To The Start Of The Next Word"
"code": "yw"
},
"Yank (Copy) To End Of Line",
"description": "Yank (Copy) To End Of Line"
"code": "y$"
},
"Put (Paste) The Clipboard After Cursor",
"description": "Put (Paste) The Clipboard After Cursor"
"code": "p"
},
"Put (Paste) Before Cursor",
"description": "Put (Paste) Before Cursor"
"code": "P"
},
"Delete (Cut) A Line",
"description": "Delete (Cut) A Line"
"code": "dd"
},
"Delete (Cut) 2 Lines",
"description": "Delete (Cut) 2 Lines"
"code": "2dd"
},
"Delete (Cut) The Characters Of The Word From The Cursor Position To The Start Of The Next Word",
"description": "Delete (Cut) The Characters Of The Word From The Cursor Position To The Start Of The Next Word"
"code": "dw"
},
"Delete (Cut) To The End Of The Line",
"description": "Delete (Cut) To The End Of The Line"
"code": "D"
},
"Delete (Cut) To The End Of The Line",
"description": "Delete (Cut) To The End Of The Line"
"code": "d$"
},
"Delete (Cut) Character",
"description": "Delete (Cut) Character"
"code": "x"
}
},
"Exiting": {
"Write (Save) The File, But Don'T Exit",
"description": "Write (Save) The File, But Don'T Exit"
"code": ":w"
},
"Write Out The Current File Using Sudo",
"description": "Write Out The Current File Using Sudo"
"code": ":w !sudo tee %"
},
"Write (Save) And Quit",
"description": "Write (Save) And Quit"
"code": ":wq or :x or ZZ"
},
"Quit (Fails If There Are Unsaved Changes)",
"description": "Quit (Fails If There Are Unsaved Changes)"
"code": ":q"
},
"Quit And Throw Away Unsaved Changes",
"description": "Quit And Throw Away Unsaved Changes"
"code": ":q! or ZQ"
}
},
"Search and replace": {
"Search For Pattern",
"description": "Search For Pattern"
"code": "/pattern"
},
"Search Backward For Pattern",
"description": "Search Backward For Pattern"
"code": "?pattern"
},
"'Very Magic' Pattern Non-Alphanumeric Characters Are Interpreted As Special Regex Symbols (No Escaping Needed)",
"description": "'Very Magic' Pattern Non-Alphanumeric Characters Are Interpreted As Special Regex Symbols (No Escaping Needed)"
"code": "\vpattern"
},
"Repeat Search In Same Direction",
"description": "Repeat Search In Same Direction"
"code": "n"
},
"Repeat Search In Opposite Direction",
"description": "Repeat Search In Opposite Direction"
"code": "N"
},
"Replace All Old With New Throughout File",
"description": "Replace All Old With New Throughout File"
"code": ":%s/old/new/g"
},
"Replace All Old With New Throughout File With Confirmations",
"description": "Replace All Old With New Throughout File With Confirmations"
"code": ":%s/old/new/gc"
},
"Remove Highlighting Of Search Matches",
"description": "Remove Highlighting Of Search Matches"
"code": ":noh"
}
},
"Search in multiple files": {
"Search For Pattern In Multiple Files",
"description": "Search For Pattern In Multiple Files"
"code": ":vimgrep /pattern/ {file}"
}
},
"Working with multiple files": {
"Edit A File In A New Buffer",
"description": "Edit A File In A New Buffer"
"code": ":e file"
},
"Go To The Next Buffer",
"description": "Go To The Next Buffer"
"code": ":bnext or :bn"
},
"Go To The Previous Buffer",
"description": "Go To The Previous Buffer"
"code": ":bprev or :bp"
},
"Delete A Buffer (Close A File)",
"description": "Delete A Buffer (Close A File)"
"code": ":bd"
},
"List All Open Buffers",
"description": "List All Open Buffers"
"code": ":ls"
},
"Open A File In A New Buffer And Split Window",
"description": "Open A File In A New Buffer And Split Window"
"code": ":sp file"
},
"Open A File In A New Buffer And Vertically Split Window",
"description": "Open A File In A New Buffer And Vertically Split Window"
"code": ":vsp file"
},
"Split Window",
"description": "Split Window"
"code": "Ctrl + ws"
},
"Switch Windows",
"description": "Switch Windows"
"code": "Ctrl + ww"
},
"Quit A Window",
"description": "Quit A Window"
"code": "Ctrl + wq"
},
"Split Window Vertically",
"description": "Split Window Vertically"
"code": "Ctrl + wv"
},
"Move Cursor To The Left Window (Vertical Split)",
"description": "Move Cursor To The Left Window (Vertical Split)"
"code": "Ctrl + wh"
},
"Move Cursor To The Right Window (Vertical Split)",
"description": "Move Cursor To The Right Window (Vertical Split)"
"code": "Ctrl + wl"
},
"Move Cursor To The Window Below (Horizontal Split)",
"description": "Move Cursor To The Window Below (Horizontal Split)"
"code": "Ctrl + wj"
},
"Move Cursor To The Window Above (Horizontal Split)",
"description": "Move Cursor To The Window Above (Horizontal Split)"
"code": "Ctrl + wk"
}
},
"Tabs": {
"Open A File In A New Tab",
"description": "Open A File In A New Tab"
"code": ":tabnew or :tabnew file"
},
"Move The Current Split Window Into Its Own Tab",
"description": "Move The Current Split Window Into Its Own Tab"
"code": "Ctrl + wT"
},
"Move To The Next Tab",
"description": "Move To The Next Tab"
"code": "gt or :tabnext or :tabn"
},
"Move To The Previous Tab",
"description": "Move To The Previous Tab"
"code": "gT or :tabprev or :tabp"
},
"Move To Tab Number #",
"description": "Move To Tab Number #"
"code": "#gt"
},
"Move Current Tab To The #Th Position (Indexed From 0)",
"description": "Move Current Tab To The #Th Position (Indexed From 0)"
"code": ":tabmove #"
},
"Close The Current Tab And All Its Windows",
"description": "Close The Current Tab And All Its Windows"
"code": ":tabclose or :tabc"
},
"Close All Tabs Except For The Current One",
"description": "Close All Tabs Except For The Current One"
"code": ":tabonly or :tabo"
},
"Run The <Code>Command</Code> On All Tabs (E.G. <Code>Tabdo Q</Code> - Closes All Opened Tabs)",
"description": "Run The <Code>Command</Code> On All Tabs (E.G. <Code>Tabdo Q</Code> - Closes All Opened Tabs)"
"code": ":tabdo command"
}
}
}
}