home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / question / 14655 < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.4 KB  |  32 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!usc!cs.utexas.edu!uwm.edu!linac!uchinews!machine!ddsw1!dattier
  3. From: dattier@ddsw1.mcs.com (DWT)
  4. Subject: Re: .exrc file for vi customization
  5. Message-ID: <Bz845J.H2D@ddsw1.mcs.com>
  6. Date: Mon, 14 Dec 1992 00:32:06 GMT
  7. References: <smr.723822561@hitkw14> <1992Dec09.171536.9561@ssc.com>
  8. Organization: Contributor Account at ddsw1, Chicago, Illinois  60657
  9. Lines: 21
  10.  
  11. fyl@ssc.com (Phil Hughes) wrote in <1992Dec09.171536.9561@ssc.com>:
  12.  
  13. | I have one thing to add.  Much like Stephen's example I find that I need
  14. | different vi setups based on what I am working on.  To automate this
  15. | process I put the like
  16. |     so .viset
  17. | in my .exrc file.  Whenever vi is started it looks for the file .viset in
  18. | the current directory.  If found, it reads it in much the same as it reads
  19. | .exrc.  If it doesn't find it an error message that that effect quickly
  20. | blinks on the status line and things continue.
  21. |
  22. | This makes it possible to have special vi setups for various directories.
  23.  
  24. One important note: in many vi's attempting to source a nonexistent file will
  25. make .exrc abort; any further commands in .exrc will not be read.
  26.  
  27. So if you use Phil's suggestion, "so .viset" has to be the *last* command
  28. in .exrc.
  29.  
  30. David W. Tamkin   Box 59297   Northtown Station, Illinois  60659-0297
  31. dattier@ddsw1.mcs.com    CompuServe: 73720,1570    MCI Mail: 426-1818
  32.