Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!zaphod.mps.ohio-state.edu!mips!wdl1.wdl.loral.com!wdl1!ed From: ed@lvw6.lvw.fac.com (Ed Allen) Newsgroups: comp.editors Subject: Re: "set modelines" in vi Message-ID: Date: 8 Dec 90 10:08:33 GMT References: <9012051559.AA01923@samadams.Princeton.EDU> Sender: root@wdl1.wdl.loral.com (SUPER USER) Distribution: na Organization: /users/ed/.organization Lines: 20 In-Reply-To: tr@SAMADAMS.PRINCETON.EDU's message of 5 Dec 90 15:59:52 GMT Nntp-Posting-Host: lvw6 In article <9012051559.AA01923@samadams.Princeton.EDU> tr@SAMADAMS.PRINCETON.EDU (Tom Reingold) writes: > The problem is that anything I set with one of these commands in my > file seems to tell vi that the file has been modified immediately upon > entering the editor. So I can't use ":q" or "ZZ" to quit. If I do, it > will write out the file unnecessarily, making me recompile > unnecessarily. > > Is there a way around this problem? > -- Can't you add another modeline which does something like: :ex:%w /dev/null That should "write" your changes to the bit-bucket. -- Never trust a man who wears white shoes. | Ed Allen Vote Libertarian... Scare the Hell out of 'em. | Loral Command & Contr. Sys. "Sure the game is rigged! But if you don't play | ed@lvw6.lvw.loral.com you can't win!"