Repository navigation
Expand file tree
/
Copy pathVim.rb
More file actions
932 lines (863 loc) · 28.9 KB
/
Copy pathVim.rb
File metadata and controls
932 lines (863 loc) · 28.9 KB
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
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
cheatsheet do
title 'Vim'
docset_file_name 'Vim'
keyword 'vimc'
source_url 'http://cheat.kapeli.com'
category do
id 'Exiting'
entry do
command ':q[uit]'
name 'Quit Vim'
notes 'This fails when changes have been made.'
end
entry do
command ':q[uit]!'
name 'Quit without writing'
end
entry do
command ':qa'
name 'Quit all buffers / tabs'
end
entry do
command ':cq[uit]'
name 'Quit always, without writing'
end
entry do
command ':wq'
name 'Write the current file and exit'
end
entry do
command ':wqa'
name 'Quit and write all buffers / tabs'
end
entry do
command ':wq!'
name 'Write the current file and exit always'
end
entry do
command ':wq {file}'
name 'Write to {file}. Exit if not editing the last'
end
entry do
command ':wq! {file}'
name 'Write to {file} and exit always'
end
entry do
command ':[range]wq[!]'
name 'Write the lines in [range] and exit always'
end
entry do
command 'ZZ'
name 'Write current file, if modified, and exit'
end
entry do
command 'ZQ'
name 'Quit current file and exit'
notes 'Same as `:q!`.'
end
end
category do
id 'Editing a File'
entry do
command ':e[dit]'
name 'Edit the current file'
notes 'This is useful to re-edit the current file, when it has been changed outside of Vim.'
end
entry do
command ':e[dit]!'
name 'Edit the current file always'
notes 'Discard any changes to the current buffer. This is useful if you want to start all over again.'
end
entry do
command ':e[dit] {file}'
name 'Edit {file}'
end
entry do
command ':e[dit]! {file}'
name 'Edit {file} always'
notes 'Discard any changes to the current buffer.'
end
entry do
command 'gf'
name 'Edit the file whose name is under or after the cursor'
notes 'Mnemonic: `goto file`.'
end
end
category do
id 'Inserting Text'
entry do
command 'a'
name 'Append text after the cursor [count] times'
end
entry do
command 'A'
name 'Append text at the end of the line [count] times'
end
entry do
command 'i'
name 'Insert text before the cursor [count] times'
end
entry do
command 'I'
name 'Insert text before the first non-blank in the line [count] times'
end
entry do
command 'gI'
name 'Insert text in column 1 [count] times'
end
entry do
command 'o'
name 'Begin a new line below the cursor and insert text, repeat [count] times'
end
entry do
command 'O'
name 'Begin a new line above the cursor and insert text, repeat [count] times'
end
end
category do
id 'Inserting a File'
entry do
command ':r[ead] [name]'
name 'Insert the file [name] below the cursor'
end
entry do
command ':r[ead] !{cmd}'
name 'Execute {cmd} and insert its standard output below the cursor'
end
end
category do
id 'Deleting Text'
entry do
command '<Del>'
command 'x'
name 'Delete [count] characters under and after the cursor'
end
entry do
command 'X'
name 'Delete [count] characters before the cursor'
end
entry do
command 'd{motion}'
name 'Delete text that {motion} moves over'
end
entry do
command 'dd'
name 'Delete [count] lines'
end
entry do
command 'D'
name 'Delete the characters under the cursor until the end of the line'
end
entry do
command '{Visual}x'
command '{Visual}d'
name 'Delete the highlighted text'
notes 'For {Visual} see Selecting Text.'
end
entry do
command '{Visual}CTRL-H'
command '{Visual}<BS>'
name 'Delete the highlighted text when in Select mode'
end
entry do
command '{Visual}X'
command '{Visual}D'
name 'Delete the highlighted lines'
end
entry do
command ':[range]d[elete]'
name 'Delete [range] lines'
notes 'Default: current line.'
end
entry do
command ':[range]d[elete] {count}'
name 'Delete {count} lines, starting with [range]'
end
end
category do
id 'Changing / Replacing Text'
entry do
command 'r{char}'
name 'Replace the character under the cursor with {char}'
end
entry do
command 'R'
name 'Enter Insert mode, replacing characters rather than inserting'
end
entry do
command '~'
name 'Switch case of the character under the cursor and move the cursor to the right'
notes 'If a [count] is given, do that many characters.'
end
entry do
command 'g~{motion}'
name 'Switch case of {motion} text'
end
entry do
command '{Visual}~'
name 'Switch case of highlighted text'
end
entry do
command '{Visual}U'
name 'Uppercase highlighted text'
end
entry do
command 'SHIFT+I<comment-char>ESC'
name 'Comment vertical selection'
notes 'Select range in column where comment char should appear with `CTRL+V`.'
end
entry do
command 'x'
name 'Uncomment vertical selection'
notes 'Select range in column where comment char should be removed with `CTRL+V`.'
end
end
category do
id 'Information'
entry do
command '%'
name 'Jump to matching brace'
end
entry do
command '*'
name 'Highlight all occurrences of word under cursor'
end
end
category do
id 'Ranges'
entry do
notes <<-'END'
A range permits a command to be applied to a group of lines in the current buffer.
For most commands, the default range is the current line.
* `:21s/old/new/g` - Line 21
* `:1s/old/new/g` - First line
* `:$s/old/new/g` - Last line
* `:%s/old/new/g` - All lines
* `:.,$s/old/new/g` - Current line to end
END
end
end
category do
id 'Substituting'
entry do
name 'For each line in [range] replace a match of {pattern} with {string}'
notes '
```
:[range]s[ubstitute]/{pattern}/{string}/[c][e][g][p][r][i][I] [count]
```'
end
entry do
name 'Repeat last :substitute with same search pattern and substitute string, but without the same flags'
notes '
```
:[range]s[ubstitute] [c][e][g][r][i][I] [count] :[range]&[c][e][g][r][i][I] [count]
```
You may add extra flags.'
end
entry do
notes <<-'END'
The arguments that you can use for the substitute commands:
* `[c]` Confirm each substitution. Vim positions the cursor on the matching string. You can type:
* `y` to substitute this match
* `n` to skip this match
* `a` to substitute this and all remaining matches
* `q` to quit substituting
* `CTRL-E` to scroll the screen up
* `CTRL-Y` to scroll the screen down
* `[e]` When the search pattern fails, do not issue an error message and, in particular, continue in maps as if no error occurred
* `[g]` Replace all occurrences in the line. Without this argument, replacement occurs only for the first occurrence in each line
* `[i]` Ignore case for the pattern
* `[I]` Don't ignore case for the pattern
* `[p]` Print the line containing the last substitute
END
end
end
category do
id 'Copying and Moving Text'
entry do
command '"{a-zA-Z0-9.%#:-"}'
name 'Use register {a-zA-Z0-9.%#:-"} for next delete, yank or put'
notes 'Use uppercase character to append with delete and yank. {.%#:} only work with put.'
end
entry do
command ':reg[isters]'
command ':di[splay]'
name 'Display the contents of all numbered and named registers'
end
entry do
command ':reg[isters] {arg}'
command ':di[splay] [arg]'
name 'Display the contents of the numbered and named registers that are mentioned in {arg}'
end
entry do
command '["x]y{motion}'
name 'Yank {motion} text [into register x]'
end
entry do
command '["x]yy'
command '["x]Y'
name 'Yank [count] lines [into register x]'
end
entry do
command '{Visual}["x]y'
name 'Yank the highlighted text \[into register x\]'
notes 'For {Visual} see Selecting Text.'
end
entry do
command '{Visual}["x]Y'
name 'Yank the highlighted lines [into register x]'
end
entry do
command ':[range]y[ank] [x]'
name 'Yank \[range\] lines [into register x]'
end
entry do
command ':[range]y[ank] [x] {count}'
name 'Yank {count} lines, starting with last line number in \[range\], [into register x]'
notes 'Default: current line.'
end
entry do
command '["x]p'
name 'Put the text [from register x] after the cursor [count] times'
end
entry do
command '["x]P'
name 'Put the text [from register x] before the cursor [count] times'
end
entry do
command '["x]gp'
name 'Just like `p`, but leave the cursor just after the new text'
end
entry do
command '["x]gP'
name 'Just like `P`, but leave the cursor just after the new text'
end
entry do
command ':[line]pu[t] [x]'
name 'Put the text [from register x] after \[line\]'
notes 'Default: current line.'
end
entry do
command ':[line]pu[t]! [x]'
name 'Put the text [from register x] before \[line\]'
notes 'Default: current line.'
end
end
category do
id 'Undo, Redo and Repeat'
entry do
command 'u'
name 'Undo [count] changes'
end
entry do
command ':u[ndo]'
name 'Undo one change'
end
entry do
command 'CTRL-R'
name 'Redo [count] changes which were undone'
end
entry do
command ':red[o]'
name 'Redo one change which was undone'
end
entry do
command 'U'
name 'Undo all latest changes on one line.'
end
entry do
command '.'
name 'Repeat last change, with count replaced with [count]'
end
end
category do
id 'Moving Around'
entry do
name 'Basic motion commands'
notes <<-'END'
```
k <up>
h l <left> <right>
j <down>
```
END
end
entry do
command 'h'
command '<Left>'
name '[count] characters to the left (exclusive)'
end
entry do
command 'l'
command '<Right>'
command '<Space>'
name '[count] characters to the right (exclusive)'
end
entry do
command 'k'
command '<Up>'
command 'CTRL-P'
name '[count] lines upward'
end
entry do
command 'j'
command '<Down>'
command 'CTRL-J'
command '<NL>'
command 'CTRL-N'
name '[count] lines downward (linewise)'
end
entry do
command '0'
command '<Home>'
name 'To the first character of the line (exclusive)'
end
entry do
command '^'
name 'To the first non-blank character of the line'
end
entry do
command '$'
command '<End>'
name 'To the end of the line and [count - 1] lines downward'
end
entry do
command 'g0'
command 'g<Home>'
name 'To the first character of the screen line (exclusive) when lines wrap (\'wrap on). Differs from `0` when a line is wider than the screen
To the leftmost character of the current line that is on the screen when lines don\'t wrap (\'wrap\' off). Differs from `0` when the first character of the line is not on the screen'
end
entry do
command 'g^'
name 'To the first non-blank character of the screen line (exclusive) when lines wrap (\'wrap\' on). Differs from `^` when a line is wider than the screen.
To the leftmost non-blank character of the current line that is on the screen when lines don\'t wrap (\'wrap\' off). Differs from `^` when the first non-blank character of the line is not on the screen'
end
entry do
command 'g$'
command 'g<End>'
name 'To the last character of the screen line and [count - 1] screen lines downward (inclusive) when lines wrap (\'wrap\' on). Differs from `$` when a line is wider than the screen.
To the rightmost character of the current line that is visible on the screen when lines don\'t wrap (\'wrap\' off). Differs from `$` when the last character of the line is not on the screen or when a count is used'
end
entry do
command 'f{char}'
name 'To [count]\'th occurrence of {char} to the right. The cursor is placed on {char} (inclusive)'
end
entry do
command 'F{char}'
name 'To the [count]\'th occurrence of {char} to the left. The cursor is placed on {char} (inclusive)'
end
entry do
command 't{char}'
name 'Till before [count]\'th occurrence of {char} to the right. The cursor is placed on the character left of {char} (inclusive)'
end
entry do
command 'T{char}'
name 'Till after [count]\'th occurrence of {char} to the left. The cursor is placed on the character right of {char} (inclusive)'
end
entry do
command ';'
name 'Repeat latest f, t, F or T [count] times'
end
entry do
command ','
name 'Repeat latest f, t, F or T in opposite direction [count] times'
end
entry do
command '- <minus>'
name '[count] lines upward, on the first non-blank character (linewise)'
end
entry do
command '+'
command 'CTRL-M'
command '<CR>'
name '[count] lines downward, on the first non-blank character
(linewise)'
end
entry do
command '_ <underscore>'
name '[count] - 1 lines downward, on the first non-blank character (linewise)'
end
entry do
command 'CTRL-End'
command 'G'
name 'Goto line [count] on the first non-blank character'
notes 'Default: last line.'
end
entry do
command 'CTRL-Home'
command 'gg'
name 'Goto line [count] on the first non-blank character'
notes 'Default: first line.'
end
entry do
command 'SHIFT-Right'
command 'w'
name '[count] words forward'
end
entry do
command 'CTRL-Right'
command 'W'
name '[count] WORDS forward'
end
entry do
command 'e'
name 'Forward to the end of word [count]'
end
entry do
command 'E'
name 'Forward to the end of WORD [count]'
end
entry do
command 'SHIFT-Left'
command 'b'
name '[count] words backward'
end
entry do
command 'CTRL-Left'
command 'B'
name '[count] WORDS backward'
end
entry do
command 'ge'
name 'Backward to the end of word [count]'
end
entry do
command 'gE'
name 'Backward to the end of WORD [count]'
end
entry do
command 'H'
name 'Move to the top of the screen'
end
entry do
command 'M'
name 'Move to the middle of the screen'
end
entry do
command 'L'
name 'Move to the bottom of the screen'
end
entry do
command 'zz'
name 'Scroll the line with the cursor to the center of the screen'
end
entry do
command 'zt'
name 'Scroll the line with the cursor to the top'
end
entry do
command 'zb'
name 'Scroll the line with the cursor to the bottom'
end
entry do
notes <<-'END'
The following commands move over words or WORDS.
A word consists of a sequence of letters, digits and underscores, or a sequence of other non-blank characters, separated with white space (spaces, tabs, <EOL>). This can be changed with the 'iskeyword' option.
A WORD consists of a sequence of non-blank characters, separated with white space. An empty line is also considered to be a word and a WORD.
END
end
entry do
command '('
name '[count] sentences backward'
end
entry do
command ')'
name '[count] sentences forward'
end
entry do
command '{'
name '[count] paragraphs backward'
end
entry do
command '}'
name '[count] paragraphs forward'
end
entry do
command ']]'
name '[count] sections forward or to the next \'{\' in the first column'
notes 'When used after an operator, then the \'}\' in the first column.'
end
entry do
command ']['
name '[count] sections forward or to the next \'}\' in the first column'
end
entry do
command '[['
name '[count] sections backward or to the previous \'{\' in the first column'
end
entry do
command '[]'
name '[count] sections backward or to the previous \'}\' in the first column'
end
end
category do
id 'Marks'
entry do
command 'm{a-zA-Z}'
name 'Set mark {a-zA-Z} at cursor position'
notes 'Does not move the cursor, this is not a motion command.'
end
entry do
command 'm\''
command 'm\`'
name 'Set the previous context mark'
notes 'This can be jumped to with the `\'\'` or ``` `` ``` command. Does not move the cursor, this is not a motion command.'
end
entry do
command ':[range]ma[rk] {a-zA-Z}'
command ':[range]k{a-zA-Z}'
name 'Set mark {a-zA-Z} at last line number in [range], column 0'
notes 'Default is cursor line.'
end
entry do
command '\'{a-z}'
name 'To the first non-blank character on the line with mark {a-z} (linewise)'
end
entry do
command '\'{A-Z0-9}'
name 'To the first non-blank character on the line with mark {A-Z0-9} in the correct file'
end
entry do
command '`{a-z}'
name 'To the mark {a-z}'
end
entry do
command '`{A-Z0-9}'
name 'To the mark {A-Z0-9} in the correct file'
end
entry do
command ':marks'
name 'List all the current marks (not a motion command)'
end
entry do
command ':marks {arg}'
name 'List the marks that are mentioned in {arg} (not a motion command). For example:'
end
end
category do
id 'Searching'
entry do
command '/{pattern}[/]<CR>'
name 'Search forward for the [count]\'th occurrence of {pattern}'
end
entry do
command '/{pattern}/{offset}<CR>'
name 'Search forward for the [count]\'th occurrence of {pattern} and go {offset} lines up or down'
end
entry do
command '/<CR>'
name 'Search forward for the [count]\'th latest used pattern'
end
entry do
command '//{offset}<CR>'
name 'Search forward for the [count]\'th latest used pattern with new'
notes 'If {offset} is empty no offset is used.'
end
entry do
command '?{pattern}[?]<CR>'
name 'Search backward for the [count]\'th previous occurrence of {pattern}'
end
entry do
command '?{pattern}?{offset}<CR>'
name 'Search backward for the [count]\'th previous occurrence of {pattern} and go {offset} lines up or down'
end
entry do
command '?<CR>'
name 'Search backward for the [count]\'th latest used pattern'
end
entry do
command '??{offset}<CR>'
name 'Search backward for the [count]\'th latest used pattern with new {offset}'
notes 'If {offset} is empty no offset is used.'
end
entry do
command 'n'
name 'Repeat the latest `/` or `?` [count] times'
end
entry do
command 'N'
name 'Repeat the latest `/` or `?` [count] times in opposite direction'
end
entry do
command ':lv {pattern} [g][j] {file(s)}'
name 'Search in files with internal grep'
notes <<-'END'
Results are put into "quickfix list" open with `:cw`
* 'g' return all matches not just one per line
* 'j' don't jump to first match automatically
* for recursive search use `**` file pattern like `**/*.c`
END
end
end
category do
id 'Selecting Text (Visual Mode)'
entry do
notes <<-'END'
To select text, enter visual mode with one of the commands below, and use motion commands to highlight the text you are interested in. Then, use some command on the text.
The operators that can be used are:
* `~` switch case
* `d` delete
* `c` change
* `y` yank
* `>` shift right
* `<` shift left
* `!` filter through external command
* `=` filter through 'equalprg' option command
* `gq` format lines to 'textwidth' length
END
end
entry do
command 'v'
name 'Start Visual mode per character'
end
entry do
command 'V'
name 'Start Visual mode linewise (horizontal selection)'
end
entry do
command 'CTRL-V'
name 'Start Visual mode columnwise (vertical selection)'
end
entry do
command '<Esc>'
name 'Exit Visual mode without making any changes'
end
entry do
command 'viw'
name 'Visually select inner word (where the cursor is positioned)'
end
end
category do
id 'Suspending'
entry do
command 'CTRL-Z'
name 'Suspend Vim'
notes 'Like `:stop`. Works in Normal and in Visual mode. In Insert and Command-line mode, the CTRL-Z is inserted as a normal character.'
end
entry do
command ':sus[pend][!]'
command ':st[op][!]'
name 'Suspend Vim!'
notes 'If the \'!\' is not given and \'autowrite\' is set, every buffer with changes and a file name is written out. If the \'!\' is given or \'autowrite\' is not set, changed buffers are not written, don\'t forget to bring Vim back to the foreground later!'
end
end
category do
id 'Multiple Windows'
entry do
command ':e filename'
name 'Edit another file'
end
entry do
command ':split filename'
name 'Split window and load another file'
end
entry do
command 'CTRL-W v'
name 'Vertical split current window'
end
entry do
command 'CTRL-W s'
name 'Horizontal split current window'
end
entry do
command 'CTRL-W Arrow Up'
name 'Move cursor up a window'
end
entry do
command 'CTRL-W CTRL-W'
name 'Move cursor to another window (cycle)'
end
entry do
command 'CTRL-W_'
name 'Maximize current window'
end
entry do
command 'CTRL-W='
name 'Make all equal size'
end
entry do
command '10 CTRL-W+'
name 'Increase window size by 10 lines'
end
entry do
command ':vsplit file'
name 'Vertical split'
end
entry do
command ':sview file'
name 'Same as split, but readonly'
end
entry do
command ':hide'
name 'Close current window'
end
entry do
command ':only'
name 'Keep only this window open'
end
entry do
command ':ls'
name 'Show current buffers'
end
entry do
command ':b 2'
name 'Open buffer #2 in this window'
end
entry do
command ':bd[n]'
name 'Close current buffer'
notes 'If `[n]` is given close buffer `#n`. `#n` can be gathered with `:ls`.'
end
end
category do
id 'Browsing with Tags'
entry do
notes <<-'END'
When editing programs, there is often a need to jump to another location. Vim uses a tags file that lists each word and
location. The tags file has to be created by a utility able to handle the syntax of your files, and has to be updated after significant editing has occurred.
END
end
entry do
command 'CTRL-]'
command 'LMB-on-tag+CTRL'
command 'g LMB-on-tag'
name 'Jump to tag'
notes 'Postion the cursor over a tag name, visually select text, use the left-mouse-button (LMB). Pushes current location to tag stack for later return.'
end
entry do
command 'CTRL+t'
name 'Return after jump'
notes 'Pops location to jump to from tag stack.'
end
entry do
command ':tags'
name 'Show tag stack'
notes 'List of return locations, used by `CTRL+t`.'
end
end
category do
id 'Internal Lists'
entry do
notes <<-'END'
* Vim has one global quickfix list. The list contains file positions filled by other commands.
* Vim has one location list per window. The list is similar to a quickfix list and contains a list of positions in filesi.
END
end
entry do
command ':cw'
name 'Open "quickfix list" (one global list)'
end
entry do
command ':ccl'
name 'Close "quickfix list"'
end
entry do
command ':lw'
name 'Open "location list" (one per window)'
end
end
notes <<-'END'
* Based on the cheat sheet from [fprintf](http://www.fprintf.net/vimCheatSheet.html).
* Converted by [Arief Bayu Purwanto](https://github.com/ariefbayu).
END
end