Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!houxm!houxz!vax135!cornell!uw-beaver!tektronix!hplabs!sri-unix!rad@MITRE-BEDFORD.ARPA From: rad@MITRE-BEDFORD.ARPA Newsgroups: net.unix Subject: Re: vi help needed Message-ID: <411@sri-arpa.UUCP> Date: Wed, 25-Jul-84 09:09:00 EDT Article-I.D.: sri-arpa.411 Posted: Wed Jul 25 09:09:00 1984 Date-Received: Sat, 28-Jul-84 07:53:53 EDT Lines: 24 >When I use vi one of the first things I usually do is execute the command > > :map g :.=^VCR > >so that by hitting the g key it tells me what line I'm on. I would like >to have my editor come up with this command in place. Can anybody >tell me how to do this? ... Place the same command (without the colon) in the file .exrc in your home directory. You can put a lot of commands in there (set's, map's, abbrev's, etc.) to save time when you start up. If you don't like your standard setup in your .exrc file (e.g., you might want different settings when editing text than when editing programs), you can set the environmental variable EXINIT to make vi initialize from some other file: setenv EXINIT "source .differentexrc" By the way, typing control-G does the same thing as your map, in a considerably more verbose fashion. Dick Dramstad rad@mitre-bedford