home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sun4nl!tuegate.tue.nl!rwa.urc.tue.nl!tgtcmv
- From: tgtcmv@rwa.urc.tue.nl (Martien Verbruggen)
- Newsgroups: comp.editors
- Subject: Re: VI Mapping Help
- Message-ID: <tgtcmv.716458590@rwa.urc.tue.nl>
- Date: 14 Sep 92 08:16:30 GMT
- References: <1992Sep11.182433.25903@doug.cae.wisc.edu>
- Sender: root@tuegate.tue.nl
- Reply-To: tgtcmv@urc.tue.nl
- Lines: 31
-
- saunders@luther.che.wisc.edu (Brian E. Saunders) writes:
-
- >I am using remapping commands to do some common tasks in vi in a smaller
- >amount of time. If I place the map commands in the .exrc file, or the
- >.login file, these keyboard remappings work when I edit a file in my home
- >directory, but somehow they don't show up if I'm working in any
- >subdirectory. Can any of you gurus tell me why this is happenning? My
- >setting commands in the .exrc file and .login file (e.g. wrapmargin = n)
- >translate to the subdirectories, so this is very confusing behavior.
- >--
-
- >Brian E. Saunders saunders@luther.che.wisc.edu
-
- Normally vi looks for a .exrc in the current directory first, then, if it
- doesn't find one, in the directory that is contained by the environment
- variable HOME (your home-directory), and then executes.
- When you set the EXINIT variable, it will always execute the contents of this,
- then look for a .exrc in the current dir, but it doesn't look in your home
- directory anymore. (at least the vi versions I worked with didn't).
- It took me a very long time to figure this out. Nowadays I don't set EXINIT,
- but only keep a .exrc in my home and every other directory where it has to be
- different (fortran, c, and so on).
- This means that vi always uses the .exrc in my home, except when the current
- directory contains one.
-
- Hope this helps.
- --
- Martien Verbruggen (tgtcmv@chem.tue.nl) |
- | If two wrongs don't make a right,
- Eindhoven University of technology | try three.
- Department of Chemical Engineering |
-