You can find the answer in the following URL for line numbering in VI.

http://kb.indiana.edu/data/afcx.html...41541.91687.30

Basically it's escape :set number to turn it on
and
escape :set nonumber to turn it off.