Comments in .exrc?

Joseph Boykin boykin at encore.com
Fri May 3 06:10:58 AEST 1991


In article <26748 at adm.brl.mil>, RSS%CALSTATE.bitnet at 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 at encore.com
Phone: 508-460-0500 x2720



More information about the Comp.unix.questions mailing list