home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / editors / 3328 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.2 KB  |  30 lines

  1. Newsgroups: comp.editors
  2. Path: sparky!uunet!ukma!darwin.sura.net!news.duc.auburn.edu!eng.auburn.edu!sjreeves
  3. From: sjreeves@eng.auburn.edu (Stan Reeves)
  4. Subject: vi macro question
  5. Message-ID: <sjreeves.930128094458@fourier.ee.eng.auburn.edu>
  6. Sender: usenet@news.duc.auburn.edu (News Account)
  7. Nntp-Posting-Host: fourier.ee.eng.auburn.edu
  8. Organization: Auburn University Engineering
  9. Date: Thu, 28 Jan 1993 15:44:58 GMT
  10. Lines: 18
  11.  
  12. I have my EXINIT variable set as follows:
  13.  
  14. setenv EXINIT "map q /^>Status:
  15.  
  16. The purpose of the map is so that when I go into vi from mail I can hit
  17. "q" and have it automatically delete the mail header from quoted mail.
  18. This works just fine.  However, when I try to undo ("u") a delete later
  19. on in the editing session, it undoes *everything* from the point I 
  20. started the editing session.  Sometimes the editor mumbles something
  21. about a global macro, although I can't remember the exact circumstances.
  22. Anybody got any ideas on why "u" undoes everything rather than just the
  23. last change?  Any ideas on how to change that behavior?
  24.  
  25.  
  26. --
  27. Stan Reeves
  28. Auburn University, Department of Electrical Engineering, Auburn, AL  36849
  29. INTERNET: sjreeves@eng.auburn.edu
  30.