Xref: utzoo comp.unix.questions:9646 comp.bugs.sys5:613 Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!cornell!batcomputer!itsgw!steinmetz!uunet!swlabs!csd-v!bak From: bak@csd-v.UUCP (Bruce A. Kern) Newsgroups: comp.unix.questions,comp.bugs.sys5 Subject: Re: vi `ei:' (`modeline') Keywords: vi passwd lookout Message-ID: <176@csd-v.UUCP> Date: 9 Oct 88 02:36:55 GMT References: <3394@dunkshot.mips.COM> <1235@cbnews.ATT.COM> <13215@hqda-ai.ARPA> <13905@mimsy.UUCP> Reply-To: bak@csd-v.UUCP (000-Bruce A. Kern) Organization: Computer Systems Design, Sandy Hook, Ct. Lines: 35 >In article <13215@hqda-ai.ARPA> jay@hqda-ai.ARPA (Jay Hiser) writes: >>... but SysV vi has an interesting bug/feature that can cause a problem. >> [description of modeline follows...] > >Now, the code that checks for `mode lines' is rather sloppy. Not only >does it match on `ex' and `vi', it also matches on `ei' and `vx'. And >in 4.2BSD (and perhaps some SysV releases---no telling which ones since >the release numbering is so bizarre) you cannot turn it off! More modern >Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris Just a note to report that the entire feature seems to be absent in the Microport V/AT 2.3-U version of vi. Executing :set all inside vi reports nothing about a [no]modeline option and editing the following file: 0 ex:% s/0/abc/ 1 2 3 4 ex:% s/0/abc/ produces nothing interesting. -- Bruce A. Kern 1-203-270-0399 Computer Systems Design Voice: 730 - 1700 Mon. thru Fri. 29 High Rock Road Data: All other times Sandy Hook, Ct. 06482