home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!sdd.hp.com!spool.mu.edu!darwin.sura.net!Sirius.dfn.de!zrz.tu-berlin.de!mailgzrz.tu-berlin.de!nickel
- From: nickel@cs.tu-berlin.de (Juergen Nickelsen)
- Subject: Re: Equivalents to vi's H, M, L Commands?
- In-Reply-To: mac@crchh570.BNR.CA's message of 9 Sep 92 18:35:31 GMT
- Message-ID: <NICKEL.92Sep10183434@desaster.cs.tu-berlin.de>
- Lines: 27
- Sender: news@mailgzrz.tu-berlin.de (News Manager)
- Nntp-Posting-Host: desaster.cs.tu-berlin.de
- Reply-To: nickel@cs.tu-berlin.de
- Organization: STONE Project, Technical University of Berlin, Germany
- References: <1992Sep09.183531.5615@bnr.ca>
- Date: Thu, 10 Sep 1992 16:34:38 GMT
-
- In article <1992Sep09.183531.5615@bnr.ca> mac@crchh570.BNR.CA (Michael
- Campbell) writes:
-
- > Does anyone know of emacs functions that perform a similar function to
- > the vi commands H, M, and L (Home, Middle, and Last)? These functions
- > move the cursor to the top of the screen (Home), the middle line of the
- > screen (Middle), and the last line of the screen (Last). They do not
- > effect vi's position in the file - they simply allow you to move the
- > cursor around the currently displayed screen. Please post any replies
- > to this newsgroup. Thanks!
-
- Two solutions have already been posted -- both unnecessary, because
- this functionality is already available in Emacs. Look at the
- documentation to the function "recenter", usually bound to C-l:
-
- Center point in window and redisplay screen. With ARG, put point
- on line ARG. The desired position of point is always relative to
- the current window. Just C-u as prefix means put point in the
- center of the screen. No arg (i.e., it is nil) erases the entire
- screen and then redraws with point in the center.
-
- So C-l is equivalent to M
- M-- C-l is equivalent to L
- M-0 C-l is equivalent to H.
-
- --
- Juergen Nickelsen
-