Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!crdgw1!uunet!bu.edu!encore!boykin@encore.com From: boykin@encore.com (Joseph Boykin) Newsgroups: comp.unix.questions Subject: Re: Comments in .exrc? Message-ID: <14712@encore.Encore.COM> Date: 2 May 91 20:10:58 GMT References: <26748@adm.brl.mil> Sender: news@Encore.COM Reply-To: boykin@encore.com Organization: Encore Computer Corp. Lines: 33 Nntp-Posting-Host: encore.encore.com In article <26748@adm.brl.mil>, RSS%CALSTATE.bitnet@vm.usc.edu (Richard S. Smith) writes: |> Here's an interesting one: I'm looking for a way to selectively |> comment out certain lines in my .exrc file. The problem is that |> vi leaves precious few keys left for remapping, so I need the |> ability to turn the definitions on and off with as little fuss |> as possible. |> |> If I try a # at the beginning of a line, I get some error message, |> and the whole rest of the file gets bypassed. I could exploit this |> as a feature, but I really don't want to. |> |> I suppose the underlying question is whether ex has a "comment" or |> "no-op" command. There's none mentioned in my (Xenix) manuals. Fortunately, it's not as "interesting" a problem as you think. Vi/Ex use the double quote as a comment character. All characters to the end of the line are ignored. For example: set ic sm ai " comment set wm=0 report=1 ---- Joseph Boykin Manager, Mach OS Development Encore Computer Corp Treasurer, IEEE Computer Society Internet: boykin@encore.com Phone: 508-460-0500 x2720