home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / question / 15099 < prev    next >
Encoding:
Text File  |  1993-01-01  |  1.6 KB  |  50 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!psinntp!jpradley!jpr
  3. From: jpr@jpradley.jpr.com (Jean-Pierre Radley)
  4. Subject: Re: export EXINIT var?
  5. Date: Fri, 01 Jan 1993 19:09:09 GMT
  6. Message-ID: <1993Jan01.190909.25077@jpradley.jpr.com>
  7. References: <1993Jan1.063424.4374@netcom.com>
  8. Organization: Unix in NYC
  9. Lines: 39
  10.  
  11. In article <1993Jan1.063424.4374@netcom.com> bcherkas@netcom.com (Brian Cherkas) writes:
  12. >From a UNIX textbook, I recently put this piece of code
  13. >in my .login:
  14. >
  15. >setenv EXINIT="set noautoindent ignorecase magic
  16. >wrapmargin=15 number"
  17. >export EXINIT
  18. >
  19. >I'm trying to define an EXINIT variable for vi. I'm using
  20. >the csh shell.
  21. >
  22. >My question is, why do I get this message every time I
  23. >log on: 'export: Command not found.'? 
  24. >
  25. >Also, any idea how to set the showmode option in vi to be
  26. >turned on at all times?
  27.  
  28. First error: the setenv command does not take an '=' sign.
  29. Second error: export is a sh command, not a csh command;
  30. setenv is all you need.
  31. Third error: If what you're setting extends over one physical line, you need a
  32. '\' at the end of the lines.
  33.  
  34. You can include 'set showmode' along with everything else.
  35.  
  36. Thus, on two lines:
  37.  
  38. setenv EXINIT "set noautoindent ignorecase magic \
  39. wrapmargin=15 number showmode"
  40.  
  41. Note that if you use the available abbreviations for some of the options,
  42. in your case you can do it on one line:
  43.  
  44. setenv EXINIT "set noai ic magic wm=15 nu showmode"
  45.  
  46. You really don't need 'magic' and 'noai' in there, since those are the
  47. default settings.
  48. -- 
  49. Jean-Pierre Radley   Unix in NYC   jpr@jpr.com   jpradley!jpr   CIS: 72160.1341
  50.