home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / editors / 1866 < prev    next >
Encoding:
Internet Message Format  |  1992-07-31  |  1.1 KB

  1. Path: sparky!uunet!olivea!hal.com!darkstar.UCSC.EDU!cats.ucsc.edu!david
  2. From: david@cats.ucsc.edu (David Wright)
  3. Newsgroups: comp.editors
  4. Subject: remapping o and O
  5. Message-ID: <15c4ksINNs57@darkstar.UCSC.EDU>
  6. Date: 31 Jul 92 19:34:52 GMT
  7. Organization: University of California; Santa Cruz
  8. Lines: 21
  9. NNTP-Posting-Host: mingong-ws-2.ucsc.edu
  10.  
  11.  
  12.  
  13. I would like to remap o and O in vi on a Unix SunOs 4.0. I would like to
  14. remain in escape mode and not enter insert mode. When I am in the editor, 
  15. I can give a command like:
  16.  
  17. :map o $a
  18.  
  19. (with the appropriate 's; before each control character)
  20.  
  21. Which does the job fine. However, I can`t seem to write it into my .exrc 
  22. file. Any suggestions?
  23. -- 
  24.    |^^^^^^|      _______________________________________________________
  25.    |      |      |"There is nothing in the marginal conditions that    | 
  26.    |      |      | distinguish a mountain from a mole hill"            |
  27.    | (o)(o)      O         Kenneth Boulding                            | 
  28.    @      _)    o|_____________________________________________________|  
  29.     |  ____\ o o
  30.     |     /   
  31.    /     \                              All comments  are mine---(David Wright) 
  32.