Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!husc6!mit-eddie!ll-xn!ames!amdcad!amd!intelca!oliveb!pyramid!prls!philabs!micomvax!musocs!mcgill-vision!mouse From: mouse@mcgill-vision.UUCP (der Mouse) Newsgroups: comp.unix.wizards Subject: Re: Undocumented vi feature Message-ID: <825@mcgill-vision.UUCP> Date: Fri, 26-Jun-87 05:12:14 EDT Article-I.D.: mcgill-v.825 Posted: Fri Jun 26 05:12:14 1987 Date-Received: Sat, 4-Jul-87 23:05:09 EDT References: <219@ausmelb.OZ> <756@custom.UUCP> Organization: McGill University, Montreal Lines: 16 In article <756@custom.UUCP>, boykin@custom.UUCP (Joseph Boykin) writes: > In article <219@ausmelb.OZ>, dak@ausmelb.OZ (David Kruger) writes: >> 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. > [This feature exists. Just put] either "ex:" or "vi:" followed by > the command, followed by another colon. True. This drove us bonkers for the longest time. We just happened to have a user whose name ended with ex or vi (I forget which) near the top or bottom of /etc/passwd. Guess what vipw did! der Mouse (mouse@mcgill-vision.uucp)