3e1db26a5a
Removing elvis, importing nvi, ctags, updating libedit. Change-Id: I881eb04d2dc64cf112facd992de1114e1a59107f
11 lines
171 B
Perl
11 lines
171 B
Perl
sub wc {
|
|
my $words;
|
|
$i = $VI::StartLine;
|
|
while ($i <= $VI::StopLine) {
|
|
$_ = $curscr->GetLine($i++);
|
|
$words+=split;
|
|
}
|
|
$curscr->Msg("$words words");
|
|
}
|
|
|
|
1;
|