From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Parker, Matthew" Newsgroups: gmane.emacs.help Subject: RE: How do you scroll the screen without moving the cursor ? (theC-E and C-Y keys in vi) Date: Fri, 3 Oct 2008 10:20:53 -0400 Message-ID: <9E067A1AECCB154485D4CF7E4BEF4D8E0A154A9A@post07.corp.seic.com> References: <43099179-f0fe-445e-9ad3-5efe81c2cc15@m44g2000hsc.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1223043769 23544 80.91.229.12 (3 Oct 2008 14:22:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Oct 2008 14:22:49 +0000 (UTC) To: "zoltan" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 03 16:23:46 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 1KllZB-0006O5-QS for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Oct 2008 16:23:38 +0200 Original-Received: from localhost ([127.0.0.1]:58227 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KllY8-0006oK-E6 for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Oct 2008 10:22:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KllWr-0005w9-Nq for help-gnu-emacs@gnu.org; Fri, 03 Oct 2008 10:21:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KllWn-0005sb-HD for help-gnu-emacs@gnu.org; Fri, 03 Oct 2008 10:21:11 -0400 Original-Received: from [199.232.76.173] (port=39724 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KllWn-0005sL-2Z for help-gnu-emacs@gnu.org; Fri, 03 Oct 2008 10:21:09 -0400 Original-Received: from exprod5og107.obsmtp.com ([64.18.0.184]:53676) by monty-python.gnu.org with smtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KllWm-000238-4s for help-gnu-emacs@gnu.org; Fri, 03 Oct 2008 10:21:08 -0400 Original-Received: from source ([12.20.48.152]) (using TLSv1) by exprod5ob107.postini.com ([64.18.4.12]) with SMTP; Fri, 03 Oct 2008 07:20:56 PDT Original-Received: from tm.mx2.seic.com ([192.168.0.82]) by ms.mx2.seic.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 3 Oct 2008 10:20:55 -0400 Original-Received: from POST01.corp.seic.com ([10.40.40.211]) by tm.mx2.seic.com with InterScan Messaging Security Suite; Fri, 03 Oct 2008 10:20:54 -0400 Original-Received: from post07.corp.seic.com ([10.40.40.217]) by POST01.corp.seic.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 3 Oct 2008 10:20:54 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message In-Reply-To: <43099179-f0fe-445e-9ad3-5efe81c2cc15@m44g2000hsc.googlegroups.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How do you scroll the screen without moving the cursor ? (theC-E and C-Y keys in vi) Thread-Index: AcklYoNg3ONl8CNYSiyVYsP2lTiDvQAAGIxw X-OriginalArrivalTime: 03 Oct 2008 14:20:54.0323 (UTC) FILETIME=[3ED9F030:01C92563] X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:58332 Archived-At: This might not be the most elegant... but it works... and I think it is = what you have in mind... Add these to .emacs, and try Control-Alt-n or p ;; Navigation Functions (defun scroll-up-by-one-line() "scroll ahead one line at a time" (interactive) (scroll-up 1)) =20 (defun scroll-down-by-one-line() "scroll ahead one line at a time" (interactive) (scroll-down 1)) ;; key bindings (global-set-key "\C-\M-n" 'scroll-up-by-one-line) (global-set-key "\C-\M-p" 'scroll-down-by-one-line) Matthew Parker SEI | 1 Freedom Valley Drive | Oaks, PA 19456 | p: 610-676-1279 | f: = 484-676-1279 | www.seic.com -----Original Message----- From: help-gnu-emacs-bounces+mparker=3Dseic.com@gnu.org = [mailto:help-gnu-emacs-bounces+mparker=3Dseic.com@gnu.org] On Behalf Of = zoltan Sent: Friday, October 03, 2008 2:43 AM To: help-gnu-emacs@gnu.org Subject: Re: How do you scroll the screen without moving the cursor ? = (theC-E and C-Y keys in vi) On Oct 3, 7:46=A0am, Livin Stephen wrote: > On Oct 3, 3:11=A0am, "David Lam" wrote: > > >... > > i saw this...http://www.wlindley.com/gnu/vi=A0and in the first two = rows > > theres no listed equivalent > > ... > > David, > =A0C-v is how you scroll one-page-at-a-time, so with numerical = arguments > ( "C-u 1" [ or "Cu -1" ] ), > here is how I would do it: > > C-u 1 C-v for "up", and > C-u -1 C-v for "down" . > > I don't know *any* lisp, > =A0so if I found myself wanting to do this a lot, > =A0I would probably create a macro and setup a key-binding. You can also use M-v to scroll up. And C-M-v to scroll down the next buffer