home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!psinntp!jpradley!jpr
- From: jpr@jpradley.jpr.com (Jean-Pierre Radley)
- Subject: Re: export EXINIT var?
- Date: Fri, 01 Jan 1993 19:09:09 GMT
- Message-ID: <1993Jan01.190909.25077@jpradley.jpr.com>
- References: <1993Jan1.063424.4374@netcom.com>
- Organization: Unix in NYC
- Lines: 39
-
- In article <1993Jan1.063424.4374@netcom.com> bcherkas@netcom.com (Brian Cherkas) writes:
- >From a UNIX textbook, I recently put this piece of code
- >in my .login:
- >
- >setenv EXINIT="set noautoindent ignorecase magic
- >wrapmargin=15 number"
- >export EXINIT
- >
- >I'm trying to define an EXINIT variable for vi. I'm using
- >the csh shell.
- >
- >My question is, why do I get this message every time I
- >log on: 'export: Command not found.'?
- >
- >Also, any idea how to set the showmode option in vi to be
- >turned on at all times?
-
- First error: the setenv command does not take an '=' sign.
- Second error: export is a sh command, not a csh command;
- setenv is all you need.
- Third error: If what you're setting extends over one physical line, you need a
- '\' at the end of the lines.
-
- You can include 'set showmode' along with everything else.
-
- Thus, on two lines:
-
- setenv EXINIT "set noautoindent ignorecase magic \
- wrapmargin=15 number showmode"
-
- Note that if you use the available abbreviations for some of the options,
- in your case you can do it on one line:
-
- setenv EXINIT "set noai ic magic wm=15 nu showmode"
-
- You really don't need 'magic' and 'noai' in there, since those are the
- default settings.
- --
- Jean-Pierre Radley Unix in NYC jpr@jpr.com jpradley!jpr CIS: 72160.1341
-