Monday, March 22, 2010

Re: Up/Down U and D keys work weird

On 22/03/10 15:31, James Beck wrote:
> Hi,
>
> Ever since I started using Vim (years ago), I've noticed that (very)
> infrequently, the Ctrl+u (up a half-page) and Ctrl+d (down a half-page)
> commands behave strangely. For example, right at this moment, when I
> press Ctrl+u, the page scrolls up 5 lines (instead of 25 or so). But
> Ctrl+d works like normal. Wait, now Ctrl+d is doing the same thing! It
> was working five seconds ago!
>
> So you can see why this is driving me nuts.
>
> Oooh, even more weird, it's misbehaving in ONE window, but not the
> other! Same buffer, different window. And if I press Ctrl+W, R, to
> switch the windows around, the behavior follows the window! In other
> words, now it's happening in the left window instead of the right.
>
> I've always assumed it was my terminal. But after three separate
> terminals running in Windows, CentOS, and Kubuntu, it's happening in all
> of them. What the heck key am I accidentally pressing that's putting Vim
> in "act-weird-mode"?
>
> Thanks!
> James
>

Put the cursor in Normal mode in the misbehaving window, then type

:verbose map <C-U>
:verbose map <C-D>
:verbose set scroll?

It could be either that something set a buffer-local mapping, or that
you inadvertently pressed a digit key just before the Ctrl-U or Ctrl-D.

See also
:help CTRL-U
:help CTRL-D
:help 'scroll'

Best regards,
Tony.
--
"One basic notion underlying Usenet is that it is a cooperative."

Having been on USENET for going on ten years, I disagree with this.
The basic notion underlying USENET is the flame.
-- Chuq Von Rospach

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

To unsubscribe from this group, send email to vim_use+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

No comments: