Cursor jumps to center while scrolling...

  • Follow


Hi there,

I found some posts on the web to that issue already but wondered if
there's a real good solution for my problem:

When I move down the cursor to a new page it sometimes "centers" to
the middle of the screen like when I would press CTRL-L. I'm using
viper for moving arround (hjkl-keys).
I find this quite annoying and wonder howto fix this. I played arround
with some of the scroll-vars but couldn't find the right one yet. I
also tried scroll-in-place.el and next-sceen-line.el but both act
weird in some situations (like next-screen-line still scrolling down
even if EOF is reached already).

Hope someone can help...

greetings,

markus
0
Reply Markus 10/2/2003 9:35:15 AM

On 2 Oct 2003 02:35:15 -0700,
Markus-3123@gmx.de (Markus_thed00t) wrote:

> When I move down the cursor to a new page it sometimes "centers"
> to the middle of the screen like when I would press CTRL-L. I'm
> using viper for moving arround (hjkl-keys).

> I find this quite annoying and wonder howto fix this. I played
> arround with some of the scroll-vars but couldn't find the right
> one yet. I also tried scroll-in-place.el and next-sceen-line.el
> but both act weird in some situations (like next-screen-line
> still scrolling down even if EOF is reached already).

> Hope someone can help...

I think what you want is scroll-step and/or scroll-conservatively.
I don't know if viper respects these, but I can't think of a good
reason it shouldn't/wouldn't, either.

HTH,
Heather

-- 
Heather Coppersmith
That's not right; that's not even wrong. -- Wolfgang Pauli
0
Reply Heather 10/2/2003 10:48:14 AM


"Markus" == Markus thed00t <Markus-3123@gmx.de> writes:

	Markus> When I move down the cursor to a new page it sometimes
	Markus> "centers" to the middle of the screen like when I would press
	Markus> CTRL-L. I'm using viper for moving arround (hjkl-keys).
	Markus>
	Markus> I find this quite annoying and wonder howto fix this. I played
	Markus> arround with some of the scroll-vars but couldn't find the
	Markus> right one yet.  I also tried scroll-in-place.el and
	Markus> next-sceen-line.el but both act weird in some situations (like
	Markus> next-screen-line still scrolling down even if EOF is reached
	Markus> already).

If you could better describe the "weird" behavior that you see with
`scroll-in-place', perhaps I could diagnose the problem and/or explain what
you're seeing.

Note that `scroll-in-place' does not change the behavior of the `next-line' and
`previous-line' commands (keys like C-n, C-p, up-arrow, and down-arrow).  It
only changes the behavior of scrolling commands (keys like C-v, M-v, page-up,
and page-down).

Seeing point (i.e., the cursor) jump to the center of a window is usually a
result of line motion commands, not of scrolling commands.

Thanks ---

Eric.

-- 
-------------------------------------------------------------------------------
Eric Eide <eeide@cs.utah.edu>  .         University of Utah School of Computing
http://www.cs.utah.edu/~eeide/ . +1 (801) 585-5512 voice, +1 (801) 581-5843 FAX
0
Reply Eric 10/2/2003 2:30:36 PM

    Markus> When I move down the cursor to a new page it sometimes
    Markus> "centers" to the middle of the screen like when I would
    Markus> press CTRL-L.

This works for me:

(setq scroll-step 1)
(setq scroll-conservatively 9999)
0
Reply Peter 10/3/2003 2:47:00 PM

On 2 Oct 2003 02:35:15 -0700, Markus_thed00t <Markus-3123@gmx.de> wrote:

<snip>

> weird in some situations (like next-screen-line still scrolling down
> even if EOF is reached already).

(setq next-line-add-newlines nil)

should do the trick.

Neil.
-- 
Some things have got to be believed to be seen.
0
Reply Neil 10/5/2003 2:57:20 AM

4 Replies
602 Views

(page loaded in 0.299 seconds)

Similiar Articles:













7/23/2012 7:36:39 PM


Reply: