Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!mcvax!enea!zyx!aj From: aj@zyx.UUCP (Arndt Jonasson) Newsgroups: comp.unix.wizards Subject: Re: Undocumented vi feature Message-ID: <1206@zyx.UUCP> Date: Sat, 4-Jul-87 22:02:35 EDT Article-I.D.: zyx.1206 Posted: Sat Jul 4 22:02:35 1987 Date-Received: Mon, 6-Jul-87 07:03:15 EDT References: <219@ausmelb.OZ> <491@its63b.ed.ac.uk> <4135@teddy.UUCP> <1419@xanth.UUCP> Reply-To: aj@zyx.UUCP (Arndt Jonasson) Organization: ZYX Sweden AB, Stockholm Lines: 36 Keywords: vi/ex commands in a text file [Discussing a vi/ex feature, which for a file containing vi:: in its first five lines causes the ex commands to be interpreted when the file is read by vi/ex.] In HP-UX series 200/300, version 5.141, vi doesn't have this feature, but in version 5.22, it does. In article <1419@xanth.UUCP> john@xanth.UUCP (John Owens) writes: > >And indeed, in the version of ex/vi distributed with 4.3BSD, 3.7 >6/7/85, this behavior only happens if the variable "modeline" (no >abbreviation) is set when a file is read. > Not so in HP-UX; in 5.22, neither 'modelines' nor 'modeline' are valid options, so the feature apparently can't be turned off. >Also, there must be a space or tab before the "ex:" or "vi:". This isn't necessary in HP-UX 5.22 vi/ex. >"The real documentation is the code." Or, "Use the source...." If only I had the source ... on the other hand, we have GNU Emacs, so noone here really cares. We haven't been bitten by this feature, anyway. Aside note: I noticed an option in HP-UX 5.22 vi called 'novice', which initially is turned off. Due to its name, it can't be turned on very easily ("vice: no such option"). Thinking that it might have to do with this feature, I did turn it on, but it hadn't. -- Arndt Jonasson, ZYX Sweden AB, Styrmansgatan 6, 114 54 Stockholm, Sweden UUCP: ...!seismo!mcvax!zyx!aj