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

  1. Xref: sparky comp.unix.questions:13471 comp.unix.shell:4730
  2. Newsgroups: comp.unix.questions,comp.unix.shell
  3. Path: sparky!uunet!meaddata!brianm
  4. From: brianm@meaddata.com (Brian Montgomery)
  5. Subject: mapping extended keyboard keys in vi/ksh
  6. Sender: brianm@plasma.meaddata.com(Brianm Montgomery)
  7. Organization: Mead Data Central, Dayton OH
  8. Date: Mon, 16 Nov 1992 15:39:56 GMT
  9. Message-ID: <1992Nov16.153956.20790@meaddata.com>
  10. Distribution: oh
  11. Lines: 27
  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.  
  33.  
  34. Any help will be greatly appreciated.
  35. Emailing me your responses would be a good idea
  36. as I don't frequent the net often. I will summarise and post , if
  37. I get enough requests (> 10).
  38.  
  39. Thanks in advance 
  40.