Best regards,
Tony.
Love at first sight is one of the greatest labor-saving devices the
world has ever seen.
-------- Original Message --------
Subject: Re: Up/Down U and D keys work weird
Date: Mon, 22 Mar 2010 12:20:48 -0400
From: James Beck <james@technorouters.com>
Organization: TechnoCNC
To: Tony Mechelynck <antoine.mechelynck@gmail.com>
> - does it occur in one file-type in particular or in multiple
> file-types? (only with Ruby source files; only with Apache config files,
> etc)
Not that I can tell, but I typically only edit .c/h files. In this case,
it's a .c file.
> - do you have any plugins/scripts enabled? (and correspondingly, does
> it ever happen if you start vim with no plugins/vimrc loaded?)
The only plugin I've consistently used is cscope. Unfortunately, it
happens so infrequently that it's hard to remember the last time. But I'm
pretty sure it's happened before I had cscope set up on this particular
computer.
> - as an off-chance, do you ever have issues with those key-chords in
> other applications (such as underlining with ^U in word processors)?
No, but I don't think I use that key combination in other apps.
> You mention using Win32, CentOS, and Kubuntu, but you don't mention
> whether they're in VMs or multi-boot on the same box (and thus the same
> potentially flaky hardware) or if they're each separate machines with
> their own hardware. I've had keyboards where a modifier key such as
> ctrl/shift/alt/win/meta was stuck and I had to slap it around to free it
> up. Or perhaps if you have a snazzy "enhanced" keyboard that tries to do
> smart macro-ish things with certain keystrokes.
They were all separate computers made by HP or Dell (in different states
too... Texas and NYC. Surely, the geo-political landscape doesn't have an
effect, but we can never be too sure). I've used a Dell Quietkey, a
default Dell crap keyboard (three kinds), and finally this MS Natural
keyboard.
I just experienced the stuck key this morning, and a good slap fixed that.
But anyway, no modifiers (shift or alt) seem to affect the up/down
behavior.
> - since the behavior follows the window focus, do you have any
> WinEnter/WinLeave or Buf* events defined?
None that I know of. There's nothing active in my .vimrc file.
> 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.
I will try that, thanks for the suggestion. Unfortunately, I closed Vim
out of habit, so I don't have the problem active. Now I have to wait until
it happens again. I do know that I wasn't pressing a digit key though. It
was very repeatable. But it really did act like set scroll = 5.
I'll post when it happens again. Thanks for the help!
James
--
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:
Post a Comment