repo.or.cz
/
dragonfly.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove tm.h and xm.h handling, as it wasn't used. Use nm.h only when needed.
[dragonfly.git]
/
contrib
/
nvi
/
perl_scripts
/
wc.pl
blob
0a5015987d10edd01fc79a4598d7e76a44c6dfbd
1
sub
wc
{
2
my
$words
;
3
$i
=
$VI
::
StartLine
;
4
while
(
$i
<=
$VI
::
StopLine
) {
5
$_
=
$curscr
->
GetLine
(
$i
++);
6
$words
+=
split
;
7
}
8
$curscr
->
Msg
(
"
$words
words"
);
9
}
10
11
1
;