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


in reply to making my script work with vi

Disclaimer: I'm kinda new at this. Comment: Maybe this is going on because your script is expecting a filename as a command line argument. See if the script works while reading from STDIN instead/as well ..?