From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Allan Gottlieb Newsgroups: gmane.emacs.help Subject: Re: how to position cursor at top/middle/bottom of the current screen? ( H / M / L in Vi) Date: Wed, 08 Oct 2008 21:55:27 -0400 Message-ID: References: <4f6ab4670810081609l539df820m61c2489a63c73b9c@mail.gmail.com> <4f6ab4670810081654r5e46e167jd5bed6266d575df1@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1223517377 8699 80.91.229.12 (9 Oct 2008 01:56:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Oct 2008 01:56:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 09 03:57:14 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Knkm9-0006AG-HP for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Oct 2008 03:57:13 +0200 Original-Received: from localhost ([127.0.0.1]:46178 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Knkl4-0002l4-Rv for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Oct 2008 21:56:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Knkkc-0002gN-Fr for help-gnu-emacs@gnu.org; Wed, 08 Oct 2008 21:55:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Knkka-0002fe-FU for help-gnu-emacs@gnu.org; Wed, 08 Oct 2008 21:55:38 -0400 Original-Received: from [199.232.76.173] (port=49289 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Knkka-0002fa-Al for help-gnu-emacs@gnu.org; Wed, 08 Oct 2008 21:55:36 -0400 Original-Received: from smtp.cs.nyu.edu ([128.122.80.33]:59229) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Knkka-00025Z-9p for help-gnu-emacs@gnu.org; Wed, 08 Oct 2008 21:55:36 -0400 Original-Received: from ajglap.localdomain (ool-4578d291.dyn.optonline.net [69.120.210.145]) (authenticated bits=0) by smtp.cs.nyu.edu (8.14.3/8.13.8) with ESMTP id m991tWjp015964 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 8 Oct 2008 21:55:32 -0400 (EDT) Original-Received: by ajglap.localdomain (Postfix, from userid 1502) id C39C219D921; Wed, 8 Oct 2008 21:55:27 -0400 (EDT) In-Reply-To: <4f6ab4670810081654r5e46e167jd5bed6266d575df1@mail.gmail.com> (David Lam's message of "Wed\, 08 Oct 2008 16\:54\:34 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58592 Archived-At: At Wed, 08 Oct 2008 16:54:34 -0700 David Lam wrote: > hey cool thanks... this mailing list is helpful wooo -> > > ;; from Emacs Mailing list on 10/8/2008 4pm!!! > ;; 'H' in vi > (defun move-to-window-first-line () > (interactive) > (move-to-window-line 0)) > > ;; 'L' in vi > (defun move-to-window-last-line () > (interactive) > (move-to-window-line -1)) So these are already bound to keys C-U 0 M-r move to first line C-U - 1 M-r move to first line When in X these can be shortened to M-0 M-r M-- 1 M-r that one is meta minus, followed by 1, followed by meta r allan