30.20 Multiple Editor Setup Files; Starting with a Search[This article shows vi , but the same thing will work for other editors that read a setup file when they start up. -JP] Like many people, I want different vi options set for writing a program than for working on a text file. Here's how I do it. Instead of putting mode lines (30.19 ) within each file, or writing extensions to the filenames (30.21 ) , I've got several different .exrc (30.6 ) startup files... one for each vi mode I'd like to use. I have aliases (10.2 ) that let me select the .exrc file I want. And I have vi aliased so that, when I start it up, it tells me which .exrc file is in use. Here are the lines (with comments) from my .cshrc (2.1 ) file (the CD-ROM has a set for Bourne-type shells):
The EXSTAT
variable remembers which setup file has been stored in
the .exrc
file. Also, because
you can't start vi
with a search ( % - |
|