home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- 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
- From: epstein@sparc9.cs.uiuc.edu (Milt Epstein)
- Subject: Re: Equivalents to vi's H, M, L Commands?
- Message-ID: <1992Sep10.154353.28044@sunb10.cs.uiuc.edu>
- Sender: news@sunb10.cs.uiuc.edu
- Reply-To: epstein@cs.uiuc.edu
- Organization: University of Illinois at Urbana-Champaign
- References: <1992Sep09.183531.5615@bnr.ca> <1992Sep09.192805.12394@bmerh85.bnr.ca> <1992Sep10.135545.26512@bmerh85.bnr.ca>
- Date: Thu, 10 Sep 1992 15:43:53 GMT
- Lines: 31
-
- In <1992Sep10.135545.26512@bmerh85.bnr.ca> Hamish.Macdonald@x400gate.bnr.ca (Hamish Macdonald) writes:
-
- >>>>>> On Wed, 09 Sep 92 19:28:05 GMT,
- >>>>>> In message <1992Sep09.192805.12394@bmerh85.bnr.ca>,
- >>>>>> I wrote:
- >
- >[some top-of-window, middle-of-window, and bottom-of-window functions
- > which won't work in emacs 18.58 for one thing, and are buggy to boot]
-
- [and then some more functions to accomplish some of the above, deleted]
-
- Uh, am I missing something, i.e. is there any reason these things need
- to be so complicated? Won't the following work just fine:
-
- home (or top): C-u 0 C-l
- middle: C-u C-l (or just C-l)
- last (or bottom): C-u -1 C-l
-
- C-l is by default bound to recenter, which optionally takes a prefix
- argument that indicates which window line to place the current line
- at. Negative numbers count up from the bottom.
-
- (I might as well point out the "inverse" function, move-to-window-line,
- which similarly takes prefix arguments, and which isn't by default
- bound to any key.)
-
- --
- Milt Epstein
- Department of Computer Science
- University of Illinois
- epstein@cs.uiuc.edu
-