Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site ritcv.UUCP Path: utzoo!linus!vaxine!wjh12!genrad!decvax!harpo!seismo!rochester!ritcv!mjl From: mjl@ritcv.UUCP (Mike Lutz) Newsgroups: net.unix-wizards,net.bugs Subject: Re: reading of local .exrc files Message-ID: <1030@ritcv.UUCP> Date: Wed, 25-Apr-84 20:46:34 EST Article-I.D.: ritcv.1030 Posted: Wed Apr 25 20:46:34 1984 Date-Received: Fri, 27-Apr-84 08:31:59 EST References: <377@ucbvax.UUCP> <943@hao.UUCP> Organization: Rochester Institute of Technology, Rochester, NY Lines: 18 Adding suffix dependent setup to vi is straight forward. I have a shell script in my own 'bin' that uses the suffix to select initialization commands that are then grafted onto my generic EXINIT environment variable. I even set have a function key set up to change modes in case the suffix guess is wrong. I think this is in general preferable to (and less annoying than) embedding the commands in the source file itself. Overhead for all this is about 1 CPU second on an 11/780 -- hardly noticeable unless the load average zooms out of sight. If I really wanted, I guess I could hard code it all in C and get the overhead down even further, but it's not been worth the bother up to now. Mike Lutz -- Mike Lutz Rochester Institute of Technology, Rochester NY UUCP: {allegra,seismo}!rochester!ritcv!mjl ARPA: ritcv!mjl@Rochester.ARPA