Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!rutgers!sri-unix!sri-spam!mordor!lll-lcc!pyramid!nsc!nsta!amos From: amos@nsta.UUCP (Amos Shapir) Newsgroups: comp.unix.wizards Subject: Re: Undocumented vi feature Message-ID: <302@nsta.UUCP> Date: Thu, 25-Jun-87 04:08:27 EDT Article-I.D.: nsta.302 Posted: Thu Jun 25 04:08:27 1987 Date-Received: Sat, 27-Jun-87 01:10:35 EDT References: <219@ausmelb.OZ> <491@its63b.ed.ac.uk> <4135@teddy.UUCP> Reply-To: amos%nsta@nsc.com (Amos Shapir) Distribution: world Organization: National Semiconductor (Israel) Ltd. Home of the 32532 Lines: 23 Summary: There is such an option Hdate: 28 Sivan 5747 In article <4135@teddy.UUCP> jpn@teddy.UUCP (John P. Nelson) writes: >>What you do is you put lines containing things like >> vi: commands > >Well, both SUN UN*X and DEC ULTRIX disable this (mis)feature in their >binary distributions. Just as well, in my opinion, since this can cause >unexpected behavior when editing a file. I have been waiting for someone who knows to comment on that, but since nobody did so far, I guess I'll have to: >Perhaps this behavior should be settable in the .exrc (or EXRC), with the >default OFF. The systems mentioned above, and also BSD4.3 do exactly that. To enable this option do (at least on 4.3) :set modelines . -- Amos Shapir National Semiconductor (Israel) 6 Maskit st. P.O.B. 3007, Herzlia 46104, Israel Tel. (972)52-522261 amos%nsta@nsc.com @{hplabs,pyramid,sun,decwrl} 34 48 E / 32 10 N