From: Bastien <bastienguerry@googlemail.com>
To: "Lennart Borgman \(gmail\)" <lennart.borgman@gmail.com>
Cc: 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 01:29:28 +0200 [thread overview]
Message-ID: <87r66qaco7.fsf@gnu.org> (raw)
In-Reply-To: <48ED4048.5060900@gmail.com> (Lennart Borgman's message of "Thu, 09 Oct 2008 01:20:40 +0200")
"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
> David Lam wrote:
>> like... theres M-< and M->, but those move to the cursor to the
>> /very/ top/bottom of the file
>>
>> i wanna just move the cursor relative to the current text on the
>> screen... is there a built-in function for this?
>
> Ehum, yes, if you use Viper at least... ;-)
>
> It is actually very good if you know vi.
>
> Otherwise try the command move-to-window-line.
You can easily define these two commands:
(defun move-to-window-first-line ()
(interactive)
(move-to-window-line 0))
(defun move-to-window-last-line ()
(interactive)
(move-to-window-line -1))
... then bind them to what you want.
--
Bastien
next prev parent reply other threads:[~2008-10-08 23:29 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 [this message]
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
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=87r66qaco7.fsf@gnu.org \
--to=bastienguerry@googlemail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=lennart.borgman@gmail.com \
/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.