Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wasatch!cs.utexas.edu!tut.cis.ohio-state.edu!rutgers!att!cbnewsc!danl From: danl@cbnewsc.ATT.COM (daniel.r.levy) Newsgroups: comp.editors Subject: Re: looking for way to show mode in vi on sun Summary: set modeline is not same as set showmode; anybody ported Sys V vi to sun? Message-ID: <445@cbnewsc.ATT.COM> Date: 7 Apr 89 04:17:01 GMT References: <441@cbnewsc.ATT.COM> Organization: AT&T Bell Laboratories Lines: 26 In article <441@cbnewsc.ATT.COM>, I wrote: > I am looking for a way in vi on the sun (sun3, sun4) to do what the System V > vi ":set showmode" command does, i.e., when a user is in a text modifica- > tion mode, display this fact in the lower right hand corner of the screen. > [:set modeline doesn't do the same thing] I have just been told that ":set modeline" enables a behavior in vi whereby if the first or last five lines of a file being edited contains a space or tab followed by "vi:" or "ex:" everything after that in the line is treated as an editor command. This is very different from ":set showmode", which I was also told was not implemented in Berkeley vi. Okay, the next thing I tried was to port the System V vi to the Sun4 (SUNOS 4.0.1). It quickly began to look like a major hacking headache. Simple compilation under the so-called "System V universe" won't fly: there are things which are not #defined that are supposed to be #defined, things which are not declared that are supposed to be declared, etc., etc., arrrrrrrgh!!!! Has anyone out there ported the System V vi onto the Sun4 running SUNOS 4.0.1? (Has anyone out there been crazy enough to TRY?!?) If so could you please tell me how you did it ?!? Thankx...... -- Dan'l Levy UNIX(R) mail: att!ttbcad!levy, att!cbnewsc!danl AT&T Bell Laboratories 5555 West Touhy Avenue Any opinions expressed in the message above are Skokie, Illinois 60077 mine, and not necessarily AT&T's.