all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: help-gnu-emacs@gnu.org
Subject: Re: how to position cursor at top/middle/bottom of the current	screen? ( H / M / L in Vi)
Date: Thu, 09 Oct 2008 14:43:23 +0200	[thread overview]
Message-ID: <87abde2b2s.fsf@escher.local.home> (raw)
In-Reply-To: yu97i8ipm5s.fsf@nyu.edu

On Wed, 08 Oct 2008 21:55:27 -0400 Allan Gottlieb <gottlieb@nyu.edu> wrote:

> At Wed, 08 Oct 2008 16:54:34 -0700 David Lam <david.k.lam1@gmail.com> 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

The latter can be shorter:

M-- M-r

Steve Berman





  reply	other threads:[~2008-10-09 12:43 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-08 23:09 how to position cursor at top/middle/bottom of the current screen? ( H / M / L in Vi) David Lam
2008-10-08 23:20 ` Lennart Borgman (gmail)
2008-10-08 23:29   ` Bastien
2008-10-08 23:35 ` Nikolaj Schumacher
2008-10-08 23:54   ` David Lam
2008-10-09  1:55     ` Allan Gottlieb
2008-10-09 12:43       ` Stephen Berman [this message]
2008-10-13  3:03         ` David Lam
2008-11-03  9:25 ` Xavier Maillard
2008-11-05 10:16   ` Kevin Rodgers
2008-11-05 15:08     ` Drew Adams
     [not found]   ` <mailman.2917.1225880237.25473.help-gnu-emacs@gnu.org>
2008-11-05 10:46     ` Tim X

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87abde2b2s.fsf@escher.local.home \
    --to=stephen.berman@gmx.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.