8 '!' => "filt<>er lines",
10 '#' => "rev. find word",
16 '(' => "begin senten<>ce",
17 ')' => "end senten<>ce",
18 '_' => '"soft" bol down',
22 '^^'=> "edit alt. file",
24 '=' => "re<>ind<>ent",
26 ';' => "repeat t/f/T/F",
28 "'" => "goto mark bol",
29 '"' => "use reg<>ister",
31 '^\\' => "to mode/<>ext<>ens<>ion<>s",
32 ',' => "reverse t/T/f/F",
33 '<' => "un<>ind<>ent",
34 '.' => "repeat last cmd",
37 '[' => "move back<>ward<>s",
38 '{' => "begin parag.",
39 ']' => "move forw<>ard",
42 '|' => "goto (1st) col",
45 'A' => "app<>end to eol",
46 '^a'=> "incr<>ement\nAdd one",
47 'b' => "prev word\nBack",
48 'B' => 'prev <span style="font-variant:small-caps">word</span>',
51 'C' => "chan<>ge to eol",
54 'D' => "delete to eol",
57 'E' => 'end <span style="font-variant:small-caps">word</span>',
58 '^e'=> "window down\nExtra line",
60 'F' => "back<>wd to char",
61 '^f'=> "page down\npage Forward",
63 'G' => "eof/<>goto ln",
64 '^g'=> ":file (info)",
66 'H' => "screen top\nHome row",
68 'I' => "insert at bol",
69 '^i'=> "jump to newer\nIncrease position",
73 'K' => "help\nlooKup Keyword",
75 'L' => "screen bottom\nLowermost Line",
78 'M' => "screen mid<>dle",
81 'o' => "line below\nOpen",
83 '^o'=> "jump to older",
85 'P' => "paste before",
86 'q' => "rec<>ord macro\nQueue seQuence",
88 '^q'=> "(xon)\nQome back",
89 'r' => "repl<>ace char",
90 'R' => "repl<>ace mode",
94 '^s'=> "(xoff)\nStop",
96 'T' => "back till char",
97 '^t'=> "back tag", # backtrag :P
101 'v' => "visual mode",
102 'V' => "visual lines",
103 '^v'=> "visual block",
105 'W' => 'next <span style="font-variant:small-caps">word</span>',
106 '^w'=> "win<>dow cmds",
107 'x' => "delete char",
108 'X' => "back<>space",
109 '^x'=> "subs<>tract",
110 'y' => "yank\n(copy)",
112 '^y'=> "window up\nYield",
115 '^z'=> ":sus<>pend\nzzz (as in sleep)",
117 'g~' => "case toggl<>e",
118 'g@' => "oper<>at<>or<>func",
119 'g#' => "rev. find string",
120 'g$' => "virt<>ual eol",
121 'g^' => qq'"soft" bol v<>irt<>ual',
122 'g&' => ":s rep<>eat glob<>al<>ly\nGlobal substitute",
123 'g*' => "find string",
124 'g_' => qq'"soft" eol',
125 'g+' => "later undo",
126 'g`' => "to mark keepj<>umps",
127 'g8' => "char hex val<>ue<>s",
128 'g0' => "virtual bol",
129 'g-' => "earlier undo",
130 "g\e"=> "normal mode",
131 'g]' => "go to tselect",
132 'g^]'=> "go to tjump",
133 'g;' => "to prev change pos",
134 "g'" => "to mark keepj<>umps",
135 'g<' => "see prev cmd output",
136 'g?' => "rot13 encode",
137 'g,' => "to next change pos",
139 'ga' => "char value\nGet Ascii value",
140 'g^a'=> "mem usage stats",
141 'gc' => "(un)<>com<>ment\ncommentary or tComment plugin",
142 'gd' => "local declar<>ation",
143 'gD' => "global declar<>ation",
144 'ge' => "back to word end",
145 'gE' => qq'back to <span style="font-variant:small-caps">word</span> end',
146 'gf' => "edit file at cur<>sor\nGoto File",
147 'gF' => "edit file + jump",
148 'gg' => "first line",
149 'g^g'=> "cur<>sor pos info",
150 'gh' => "select mode\nGet Highlighted",
151 'gH' => "select lines\nGet Highlighted",
152 'g^h'=> "select block\nGet Highlighted",
153 'gi' => "insert at last pos",
154 'gI' => "insert at soft bol",
155 'gj' => "<down> screen",
156 'gJ' => "join leave spac<>ing",
157 'gk' => "<up> screen",
158 'gl' => "align to left\nlion plugin, also good for easy-align",
159 'gL' => "align to right\nlion plugin",
160 'gm' => "cen<>ter screen",
161 'gn' => "select next find",
162 'gN' => "select prev find",
163 'go' => ":goto (byte)",
164 'gp' => "paste still",
165 'gP' => "paste before still",
167 'gQ' => "ex mode manual :",
168 'gr' => "virt. repl<>ace char",
169 'gR' => "virt. repl<>ace mode",
170 'gs' => "sleep\nGo to Sleep",
171 'gt' => "next tab\nGoto Tab",
173 'gu' => "lower<>case",
174 'gU' => "up<>per<>case",
175 'gv' => "prev<>ious highl<>ight\nprecedinG Visual",
176 'gV' => "avoid resel<>ect<>ion",
177 'gw' => "for<>mat still",
178 'gx' => "Netrw<>BrowseX",
180 "Z\e"=> "normal mode",
181 'ZQ' => " :q! (force)",
182 'ZZ' => " :wq (write)",
184 'z^' => "page above",
185 'z+' => "page below",
186 'z-' => "line at bottom bol\ndon't (-) see any further",
187 'z=' => "sug<>gest spell<>ing",
188 'z.' => "line at center bol",
189 "z\e"=> "normal mode",
191 'za' => "toggle fold",
192 'zA' => "toggle fold rec<>urs<>ive<>ly",
193 'zb' => "line at bot. bol",
194 'zc' => "close fold",
195 'zC' => "close folds rec<>curs<>ive<>ly",
196 'zd' => "delete fold",
197 'zD' => "delete folds rec<>urs<>ive",
198 'ze' => "cursor at right side",
199 'zE' => "elimi<>nate f<>olds",
200 'zf' => "create fold",
201 'zF' => "fold lines",
202 'zg' => "add spell<>ing\nGood word",
203 'zG' => "temp spell<>ing",
204 'zh' => "scroll <left>",
205 'zH' => "scroll <left> half scr<>een",
206 'zi' => "toggle all folds",
207 'zj' => "next fold start",
208 'zk' => "prev fold end",
209 'zl' => "scroll <right>",
210 'zL' => "scroll <right> half scr<>een",
211 'z^m'=> "line at top bol",
213 'zM' => "close all folds",
215 'zN' => "fold norm<>al",
217 'zO' => "open folds rec<>urs<>ive<>ly",
218 'zr' => "reduce folding",
219 'zR' => "open all folds",
220 'zs' => "cursor at left side",
221 'zt' => "line at top",
222 'zu' => "undo spell<>ing",
223 'zv' => "unfold cursor line",
224 'zw' => "add missp<>ell<>ing\nWrong word",
225 'zW' => "temp missp<>ell<>ing",
226 'zx' => "update folds",
227 'zX' => "re<>apply f<>olds",
228 'zz' => "line at center\nZee Zenter (with a funny accent)",
230 "[`" => "previous lc mark",
231 '[#' => "previous open #if<>/#else",
232 '[(' => "previous open (",
233 '[/' => "start of C com<>m<>ent",
234 '[{' => "previous open {",
235 '[[' => "section back<>ward<>s",
236 "[\e"=> "normal mode",
237 '[]' => qq'<span style="font-variant:small-caps">section</span> back<>ward<>s',
239 '[c' => "start of change backw<>ards",
240 '[d' => "define line",
241 '[D' => "defin<>ition",
242 '[^d'=> "to defin<>it<>ion",
243 '[i' => "first occur<>renc<>e line",
244 '[I' => "first occur<>renc<>e",
245 '[^i'=> "to first occur<>renc<>e",
246 '[m' => "start of funct<>ion",
247 '[p' => "P reind<>ent<>ed",
249 '[s' => "last missp<>ell<>ing",
250 '[S' => "last bad word",
251 '[z' => "start of open fold",
253 "]`" => "next lc mark",
254 ']#' => "next open #endif<>/#else",
255 '])' => "next open )",
256 ']/' => "end of C com<>m<>ent",
257 '][' => qq'<span style="font-variant:small-caps">section</span> forw<>ard',
258 "]\e"=> "normal mode",
259 ']]' => "section forw<>ard",
260 ']}' => "next open }",
262 ']c' => "start of change forw<>ards",
263 ']d' => "next define line",
264 ']D' => "next define",
265 ']^d'=> "to next define",
266 ']i' => "next occur<>renc<>e line",
267 ']I' => "next occur<>renc<>e",
268 ']^i'=> "to occur<>renc<>e",
269 ']m' => "end of funct<>ion",
270 ']p' => "p reind<>ent<>ed",
271 ']s' => "next missp<>ell<>ing",
272 ']S' => "next bad word",
273 ']z' => "end of open fold",
275 '^w<' => "width decr<>ease",
276 '^w>' => "width incr<>ease",
277 '^w^' => "split, edit alt file",
278 '^w_' => "set height",
279 '^w+' => "height incr<>ease",
280 '^w-' => "height decr<>ease",
281 '^w=' => "same height",
282 "^w\e"=> "normal mode",
283 '^w]' => "split, to tag",
284 '^w}' => "pre<>view tag",
285 '^w|' => "set width",
287 '^wb' => "go to bot<>tom",
290 '^wd' => "split, to def<>inition",
291 '^wf' => "split, file edit",
292 '^wF' => "^wf, jump to line",
293 '^wg' => "extra cmds",
295 '^wH' => "move far left",
296 '^wi' => "split, to decl of id<>ent<>ifier",
298 '^wJ' => "move to bottom",
300 '^wK' => "move to top",
302 '^wL' => "move far right",
304 '^wo' => ":only current",
305 '^wp' => "go to prev<>ious",
306 '^wP' => "go to pre<>view",
307 '^wq' => ":quit current",
308 '^wr' => "rotate down<>ward<>s",
309 '^wR' => "rotate up<>ward<>s",
310 '^ws' => "split horiz<>ont<>al<>ly",
311 '^wt' => "go to top",
313 '^wv' => "split vert<>ic<>al<>ly",
314 '^ww' => "go to next\nWrap around",
315 '^wW' => "go above<>/left",
316 '^wx' => "ex<>chan<>ge",
317 '^wz' => "close pre<>view",
319 "^wg\e"=> "normal mode",
320 '^wg]' => "split, :ts<>elect",
321 '^wg}' => ":ptj<>ump to tag",
322 '^wg^]'=> "split, :tj<>ump",
323 '^wgf' => "file in tab",
324 '^wgF' => "^wgf, to line<>nr",
326 'v!' => "external filter",
327 'v:' => "cmd on range",
328 'v<' => "un<>indent",
329 'v=' => "re<>ind<>ent",
331 'v~' => "toggle case",
332 "v\e"=> "normal mode",
333 'v^]'=> "jump to tag",
335 'va' => "ex<>tend area",
336 'vA' => "ap<>pend to block", # block
337 'v^a'=> "incr<>ement num<>bers",
338 'vc' => "repl<>ace area",
339 'vC' => "repl<>ace full lines", # like vS, but blocks are extended until eol
341 'vd' => "delete area",
342 'vD' => "delete lines",
343 'vg' => "extra cmds",
344 'v^g'=> "select mode",
345 'v^h'=> "back<>space", # delete in select mode, left otherwise
346 'vi' => "extend inner a<>r<>ea",
347 'vI' => "insert to block", # block
348 'vJ' => "join lines",
349 'vK' => "help sel<>ect<>ion",
350 'vo' => "to other corner",
351 'vO' => "to other side",
352 'v^o'=> "visual once", # select
353 'vp' => "repl<>ace w/ paste",
354 'vP' => "repl<>ace w/ paste",
355 'vr' => "fill up w/ ch<>ar",
356 'vS' => "repl<>ace lines",
357 'vu' => "lower<>case",
358 'vU' => "upper<>case",
359 'vv' => "char<>wise",
360 'vV' => "line<>wise",
361 'v^v'=> "block<>wise",
362 'v^x'=> "decr<>ement num<>bers",
364 'vY' => "yank lines",
366 "vg\e"=> "visual mode",
367 'vg?' => "rot13 encode",
368 'vg^a'=> "seq. incr<>ement",
369 'vg^g'=> "count region info",
370 'vgc' => "(un)<>com<>ment\ncommentary or tComment plugin",
371 'vgJ' => "join literal<>ly",
372 'vgl' => "align to left\nlion plugin, also good for easy-align",
373 'vgL' => "align to right\nlion plugin",
375 'vgw' => "for<>mat still",
376 'vg^x'=> "seq. decr<>ement",
378 "va'" => "quoted string",
379 'va<' => "<> block",
381 "va\e"=> "visual mode",
385 'vap' => "para<>graph",
386 'vas' => "senten<>ce",
387 'vat' => "xml tag block",
389 'vaW' => '<span style="font-variant:small-caps">word</span>',
391 # 'c^a' => "complete", #todo
393 # 'c^d' => "complete", #todo
395 # 'c^j' => "execute cmd",
396 # 'c^l' => "complete", #todo
397 # 'c^n' => "complete", #todo
398 # 'c^p' => "complete", #todo
399 # 'c^r' => \'i^r', # and then some...
400 # ## "insert register",
401 # 'c^y' => "selec<>tion to clip<>b<>oard",
403 'i^@' => "last insert",
404 'i^^' => "toggle :lmap usag<>e",
405 "i\e" => "normal mode",
406 'i^]' => "abbrev<>iate",
407 'i^_' => "toggle lang<>uage",
409 'i^a' => "insert prev<>ious",
410 'i^b' => "former i^_",
411 'i^c' => "abort, no abbr",
412 'i^d' => "un<>ind<>ent",
413 'i^e' => "ins char below",
414 'i^f' => "set indent<>ation",
415 'i^g' => "extra cmds",
416 'i^h' => "back<>space",
419 'i^k' => "di<>graph\nKey code",
420 'i^l' => "<em>im</em> leave ins mode",
422 'i^n' => "find next keyword",
423 'i^o' => "exec<>ute cmd",
424 'i^p' => "find prev keyword",
425 'i^r' => "insert reg<>ister",
427 'i^u' => "delete line",
428 'i^v' => "literal or ch<>ar<>cod<>e\nVerbatim or by Value",
429 'i^w' => "delete word back",
430 'i^x' => "ex<>pand mode",
431 'i^y' => "ins char above",
432 'i^z' => ":sus<>pend in <em>im</em>",
434 "i^g\e"=> "insert mode",
435 'i^gk' => "<up> start col<>umn",
436 'i^gj' => "<down> start col<>umn",
437 'i^gs' => "sur<>round\nsurround plugin",
438 'i^gu' => "break undo seq<>uence",
439 'i^gU' => "keep undo seq<>uence",
440 # other i^g keys (even esc) are not recognized
442 "i^x\e" => "normal mode",
443 'i^x^]' => "tag comp<>l<>et<>e",
444 'i^x^d' => "def<>ine compl<>et<>e",
445 'i^x^e' => "window up",
446 'i^x^f' => "file comp<>l<>et<>e",
447 'i^x^i' => "ident comp<>l<>et<>e",
448 'i^x^k' => "dict comp<>l<>et<>e",
449 'i^x^l' => "line comp<>l<>et<>e",
450 'i^x^n' => "next comp<>l<>et<>e",
451 'i^x^o' => "omni comp<>l<>et<>e",
452 'i^x^p' => "prev comp<>l<>ete",
453 'i^x^s' => "spell sugg<>est",
454 'i^x^t' => "thes<>aur<>us compl<>et<>e",
455 'i^x^u' => "cus<>tom comp<>l<>et<>e",
456 'i^x^v' => "ex cmd compl<>et<>e",
457 'i^x^y' => "window down",
462 g => "extended commands (g)",
463 Z => "quit commands",
464 z => "additional commands (z)",
465 '[' => "backward search commands ([)",
466 ']' => "forward search commands (])",
467 '^w' => "window commands (ctrl-w)",
468 '^wg' => "extended window commands (ctrl-w g)",
470 vg => "extended visual commands (v g)",
471 va => "text object selection (v a/i)",
472 # c => "command-line mode",
474 'i^g' => "extended insert commands (i ctrl-g)",
475 'i^x' => "insert completion commands (i ctrl-x)",
479 g1 => ["info", "Info command: shows/does something without altering anything."],
480 g2 => ["motion", "Moves the cursor, or defines the range for an operator (<motion>)."],
481 g3 => ["positioning", "Other movement (jumps, window (re)positioning)."],
482 g4 => ["command", "Direct action command."],
483 g6 => ["ins mode", "Enters Insert or Replace mode."],
484 g7 => ["mode", "Enters a different mode."],
485 g8 => ["vis mode", "Enters Visual or Select mode."],
486 g9 => ["key cmd", "Additional key commands (click for overview)."],
488 arg => ["key<arg>", "Commands with a dot need a char argument afterwards."],
489 motion => ["key<motion>", "Requires a motion afterwards, operates between cursor and destination."],
490 'v6 new' => ["vim", "Not in original Vi (assessment incomplete)."],
491 'xcommentary xlion xsurround ext' => ["plugin", "Optional features provided by common plugins."],
497 '!' => "g4 argm undo modec",
498 '@' => "g4 arg undo",
513 '=' => 'g4 argm undo',
514 '?' => "g2 arg modec",
522 '<' => "g4 argm undo",
524 '>' => "g4 argm undo",
525 '/' => "g2 arg modec",
526 '[' => "g9 arg mode[",
528 ']' => "g9 arg mode]",
533 'a' => "g6 undo modei",
534 'A' => "g6 undo modei",
539 'c' => "g6 argm undo modei",
540 'C' => "g6 undo modei",
542 'd' => "g4 argm undo",
551 'g' => "g9 arg modeg",
557 'i' => "g6 undo modei",
558 'I' => "g6 undo modei",
574 'o' => "g6 undo modei",
575 'O' => "g6 undo modei",
583 'r' => "g4 arg undo",
584 'R' => "g6 undo modei",
586 's' => "g6 undo modei",
587 'S' => "g6 undo modei",
597 '^v'=> "g8 modev v6",
600 '^w'=> "g9 arg mode^w",
607 'z' => "g9 arg modez",
608 'Z' => "g9 arg modeZ",
641 'c' => 'g4 argm xcommentary',
652 '^h'=> "g8 modev v6",
653 'i' => "g6 undo modei",
654 'I' => "g6 undo modei",
658 'l' => 'g3 argm arg xlion',
659 'L' => 'g3 argm arg xlion',
661 'n' => "g8 v7 modev",
662 'N' => "g8 v7 modev",
669 'R' => "g6 undo modei",
673 'u' => "g4 argm v6", # XXX undo?
674 'U' => "g4 undo argm v6",
703 'a' => "g4 v6 folding",
704 'A' => "g4 v6 folding",
706 'c' => "g4 v6 folding",
707 'C' => "g4 v6 folding",
708 'd' => "g4 v6 folding",
709 'D' => "g4 v6 folding",
711 'E' => "g4 v6 folding",
712 'f' => "g4 argm v6 folding",
713 'F' => "g4 v6 folding",
718 'i' => "g4 v6 folding",
719 'j' => "g2 v6 folding",
720 'k' => "g2 v6 folding",
724 'm' => "g4 v6 folding",
725 'M' => "g4 v6 folding",
726 'n' => "g4 v6 folding",
727 'N' => "g4 v6 folding",
728 'o' => "g4 v6 folding",
729 'O' => "g4 v6 folding",
730 'r' => "g4 v6 folding",
731 'R' => "g4 v6 folding",
735 'v' => "g4 v6 folding",
738 'x' => "g4 v6 folding",
739 'X' => "g4 v6 folding",
763 'f' => "=gf", # deprecated
772 'z' => "g2 v6 folding",
795 'f' => "=gf", # deprecated
804 'z' => "g2 v6 folding",
830 'g' => "g9 arg mode^wg",
886 'a' => 'g9 modeva arg v6',
887 'A' => 'g6 modei v6',
889 'c' => 'g6 modei v6',
890 'C' => 'g6 modei v6',
894 'g' => "g9 arg modevg",
897 'i' => "g9 modeva arg v6",
898 'I' => "g6 modei v6", # block
908 'R' => "=vS", # "might change in future"
911 'S' => 'g6 modei v6',
923 map { $_ => "=$_" } qw(
924 b B ^b ^d e E ^e f F ^f G h H ^i j ^j k l L m M ^m
925 n N ^n ^p q ^s t T ^u w W ^w ^y z ^z
926 ` # $ % ^ * ( 0 ) [ { ] } ; / ? + - _ |
927 ) # a lot like normal mode
939 'c' => 'g4 xcommentary',
941 'l' => 'g3 arg xlion',
942 'L' => 'g3 arg xlion',
975 # desc => "command-line mode",
991 # '^r' => "=i^r", # and then some...
1016 '^g' => "g9 modei^g arg",
1020 '^k' => 'g4 arg arg v6 linkdigraphs',
1021 '^l' => "g7 mode v6", # insertmode only
1026 '^q' => "=^q", # or i^v
1027 '^r' => 'g4 arg v6',
1031 '^v' => 'g4 linkcharset',
1033 '^x' => 'g9 arg modei^x v6',
1035 '^z' => "g1 v6", # insertmode only
1045 's' => 'g4 arg xsurround',
1048 # other keys (even esc) are not recognized
1054 "\e" => "g7 mode", # yes, it really leaves insert mode
1075 # TODO: mode/ (command-line)
1076 # XXX ex mode if you want to go completely wild