Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!romp!auschs!d75!cello!sanders.austin.ibm.com From: sanders@sanders.austin.ibm.com (Tony Sanders) Newsgroups: comp.editors Subject: Re: vi (vs VMS/EDT) Keywords: vi modeline showmode Message-ID: <3056@cello.UUCP> Date: 20 Nov 89 20:48:16 GMT References: <1989Nov14.223604.17418@cs.eur.nl> <13836@orstcs.CS.ORST.EDU> <2640@wtkatz.oakhill.UUCP> Sender: news@cello.UUCP Reply-To: sanders@sanders.austin.ibm.com (Tony Sanders) Lines: 22 In article <2640@wtkatz.oakhill.UUCP> chinds@oakhill.UUCP (Chris Hinds) writes: >This is news to me. I noticed that my Sun3 vi has 'modeline' but >no 'showmode.' When I set modeline on, nothing appreciable changes. > >Anybody have any experience with 'modeline' on the Sun? modeline verymuchnotequal showmode. From my .exrc: " beware the modeline my son, " with macros that bite and claws that catch. set modeline With modeline set vi will look for lines like (from my .Xdefaults): vi:map q :w!^V^M:!xrdb -nocpp -load ~/.Xdefaults^V^M^M:q^V^M: in files you are editing and execute them. Thus when I 'q' out of my .Xdefaults file it runs xrdb for me. See the manual for details. I'm surprised that sun vi doesn't have showmode. I could have sworn it did when I was using them. -- sanders Brought to you by Super Global Mega Corp .com