vim: custom key rows specifiable via ?status
authorMischa POSLAWSKY <perl@shiar.org>
Fri, 17 Oct 2008 22:19:34 +0000 (22:19 +0000)
committerMischa POSLAWSKY <perl@shiar.org>
Tue, 6 Jan 2009 22:39:02 +0000 (22:39 +0000)
commitbe46753aff7814c37fd21b8117fd77de1d3edc39
tree6a2298e732b3add47fdf8093f07d006583be391a
parentbba917e54169127218b3580c98686ba6aaf88fb4
vim: custom key rows specifiable via ?status

Allows a non-interactive keyboard custom-tailored to show only wanted key
modes and cases.  Useful to print out specific rows.

Letters indicate Vim modes (e.g. g, ^w, v, i, nothing for normal), following
digits specify keyboard modes/cases (where 1 is lower case, 2 shifted, and
3 with control pressed).  After this, a dash with more digits can be added
to supply alternative key cases shown only at the top (numeric) row.

For example:  ?static=i3+z1+g1-2+321-21  would result in:

1. insert mode keys with control pressed;
2. z + unshifted keys;
3. g + shifted keys for the first row, so !-) instead of 1-0,
     + normal keys (a-z, not A-Z as would be g2) elsewhere;
4. standard rows (control, shift, normal) for normal mode,
   but leaving out ctrl for the first row (only ^^ there).

Clicking mode keys will not work correctly (should probably just be
disabled).
index.plp