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