in reply to
making my script work with vi
Your script should be getting its input from STDIN and writing its output to STDOUT. vi will not supply your script with any command-line parameters of its own accord.
Dave.
Comment on
Re: making my script work with vi
In Section
Seekers of Perl Wisdom