Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!uflorida!mephisto!gatech!kd4nc!n4hgf!wht From: wht@n4hgf.uucp (Warren Tucker) Newsgroups: comp.sys.pyramid Subject: Re: strange behaviour of vi Message-ID: <126@n4hgf.uucp> Date: 27 Jun 90 20:43:25 GMT References: <117815@pyramid.pyramid.com> Reply-To: wht@n4hgf.UUCP (Warren Tucker) Organization: Amateur Radio Station N4HGF Lines: 27 In article <117815@pyramid.pyramid.com> cal@pyrtech.pyramid.com (Craig Alan Levin) writes: >In article <1990Jun25.165806.16769@tubsibr.uucp> petri@tubsibr.UUCP (Stefan Petri) writes: >>The `magic pattern' seems to be ``^.*ei:.*:.*'' >Yes, there is an undocumented feature that will take the first line as >initial commands. The password file should be safe since the first >line should begin with "root:". Actually, the first "few" or last "few,", "few" ~= 5 and the test is for 'e' or 'v' followed by 'x' or 'i'. ex: ei: vi: vx: are all canditidates in near the end or beginning of the file, regardless of whether the string appears at column one or now. I place /* vi: set tabwidth=4 shiftwidth=4: */ in all my C source and ; vi: set tabwidth=8 shiftwidth=8: in assembler at the -bottom- of the file. Cheers. --------------------------------------------------------------------- Warren Tucker, TuckerWare emory!n4hgf!wht or wht@n4hgf.Mt-Park.GA.US Any perceptible delay will eventually get on your nerves. --Bob Hyers