home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / wizards / 4775 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  1.1 KB

  1. Xref: sparky comp.unix.wizards:4775 comp.unix.questions:13571
  2. Newsgroups: comp.unix.wizards,comp.unix.questions
  3. Path: sparky!uunet!meaddata!brianm
  4. From: brianm@meaddata.com (Brian Montgomery)
  5. Subject: mapping extended keyboard in vi/ksh
  6. Sender: news@meaddata.com (Usenet Administrator)
  7. Organization: Mead Data Central, Dayton OH
  8. Date: Wed, 18 Nov 1992 14:33:05 GMT
  9. Message-ID: <1992Nov18.143305.2506@meaddata.com>
  10. Distribution: usa
  11. Lines: 32
  12.  
  13. hi netters,
  14.        I need your expertise in vi to help figure out this problem.
  15.  
  16. I want to map the extended keyboard to some macros in vi.  
  17.  
  18. Like for example I want to map the 
  19. pageup key to  
  20. pagedown key to  
  21. home   key to :1G
  22. end    key to :G
  23.  
  24.  
  25. Another problem is mapping of the arrow keys. 
  26.  
  27. I use the kornshell and I would like to map the arrow keys to 
  28. up arrow to k
  29. down arrow to j
  30. right arrow to l
  31. left arrow to h
  32. home key to ^
  33. end key to $
  34.  
  35.  
  36.  
  37. Any help will be greatly appreciated.
  38. Emailing me your responses would be a good idea
  39. as I don't frequent the net often. I will summarise and post , if
  40. I get enough requests (> 10).
  41.  
  42. Thanks in advance 
  43.  
  44.  
  45.