home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / editors / 2216 < prev    next >
Encoding:
Internet Message Format  |  1992-09-13  |  1.9 KB

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