Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!munnari!mulga!ausmelb!dak From: dak@ausmelb.OZ (David Kruger) Newsgroups: comp.unix.wizards Subject: Undocumented vi feature Message-ID: <219@ausmelb.OZ> Date: Thu, 18-Jun-87 01:47:33 EDT Article-I.D.: ausmelb.219 Posted: Thu Jun 18 01:47:33 1987 Date-Received: Sun, 21-Jun-87 13:59:47 EDT Organization: Austec International Limited, Melbourne Lines: 20 Keywords: vi/ex commands in a text file I usually use vi with the number and list (ex) options set. I accomplish this by putting the commands in my .exrc file. However, there are some files (as opposed to occasions) that I wish to edit in 80-column mode (both nu & list rob you of screen columns). I have mapped a function key to unset these options but, as I always want to edit certain files in 80-column mode, I am looking for a better method. A UNIX guru once told me that it is possible to somehow enter vi/ex commands at the top of a text file so that when you `vi' the file, the commands are executed. Does anybody out there know how to do it? Thanks in advance, ---------------------------------------------- -----=----- Thanks in advance, ----===---- ---=====--- Dave Kruger --=== ===-- -==== ====- a u s t e c D