home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / emacs / help / 4067 < prev    next >
Encoding:
Text File  |  1992-09-10  |  1.7 KB  |  44 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!sun-barr!cs.utexas.edu!sdd.hp.com!ux1.cso.uiuc.edu!m.cs.uiuc.edu!sunb10.cs.uiuc.edu!sparc9.cs.uiuc.edu!epstein
  3. From: epstein@sparc9.cs.uiuc.edu (Milt Epstein)
  4. Subject: Re: Equivalents to vi's H, M, L Commands?
  5. Message-ID: <1992Sep10.154353.28044@sunb10.cs.uiuc.edu>
  6. Sender: news@sunb10.cs.uiuc.edu
  7. Reply-To: epstein@cs.uiuc.edu
  8. Organization: University of Illinois at Urbana-Champaign
  9. References: <1992Sep09.183531.5615@bnr.ca> <1992Sep09.192805.12394@bmerh85.bnr.ca> <1992Sep10.135545.26512@bmerh85.bnr.ca>
  10. Date: Thu, 10 Sep 1992 15:43:53 GMT
  11. Lines: 31
  12.  
  13. In <1992Sep10.135545.26512@bmerh85.bnr.ca> Hamish.Macdonald@x400gate.bnr.ca (Hamish Macdonald) writes:
  14.  
  15. >>>>>> On Wed, 09 Sep 92 19:28:05 GMT,
  16. >>>>>> In message <1992Sep09.192805.12394@bmerh85.bnr.ca>,
  17. >>>>>> I wrote:
  18. >
  19. >[some top-of-window, middle-of-window, and bottom-of-window functions
  20. > which won't work in emacs 18.58 for one thing, and are buggy to boot]
  21.  
  22. [and then some more functions to accomplish some of the above, deleted]
  23.  
  24. Uh, am I missing something, i.e. is there any reason these things need
  25. to be so complicated?  Won't the following work just fine:
  26.  
  27.      home (or top):     C-u 0 C-l
  28.      middle:            C-u C-l (or just C-l)
  29.      last (or bottom):  C-u -1 C-l 
  30.  
  31. C-l is by default bound to recenter, which optionally takes a prefix
  32. argument that indicates which window line to place the current line
  33. at.  Negative numbers count up from the bottom.
  34.  
  35. (I might as well point out the "inverse" function, move-to-window-line,
  36. which similarly takes prefix arguments, and which isn't by default
  37. bound to any key.)
  38.  
  39. -- 
  40. Milt Epstein
  41. Department of Computer Science
  42. University of Illinois
  43. epstein@cs.uiuc.edu
  44.