http://qs321.pair.com?node_id=374766


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.