vi: undo attribute for recent increment keys
[sheet.git] / vi.plp
1 <(common.inc.plp)><:
2
3 Html({
4         title => 'vi cheat sheet',
5         version => '1.3',
6         description => [
7                 "Interactive cheat sheet for vi text editors, notably Vim,",
8                 "describing each key in various modes.",
9         ],
10         keywords => [qw'
11                 vi vim nvi sheet cheat reference overview commands keyboard
12         '],
13         stylesheet => [qw( light dark circus mono red )],
14         keys => 1,
15 });
16
17 :>
18 <h1>vi/vim cheat sheet</h1>
19
20 <h2>normal mode (default)</h2>
21
22 <:
23 use Shiar_Sheet::Keyboard 2.07;
24 my $info = do 'vi.eng.inc.pl' or die $@;
25 my $keys = Shiar_Sheet::Keyboard->new($info);
26 $keys->map($get{map}) or undef $get{map};
27 $keys->print_rows($get{rows});
28 $keys->print_legends(\%get);
29