Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I often find that I am editing away then gvim randomly does a page scroll. which means I start typing in the wrong place. On the basis that its most likely to be user error, is there some key combination that I am inadvertently pressing?

share|improve this question

2 Answers 2

There are tons of keys that can move you around in normal mode, but not so much in insert mode. If you're moving around in insert mode randomly, you should check your ~/.vimrc and ~/.gvimrc for any insert mode keymappings (see: imap).

Some of the commonly used navigational keys in normal mode are

hjkl => <left><down><up><right>

HML => Top, Mid, Bottom of current display

ztzzzb => Set row that cursor is on to Top, Mid, Bottom of page

<number>gg/G => Go to row <number>

<number>hjkl => Go <number> columns/rows left, down, up, right

.. so on and so forth.

share|improve this answer

It might not be a key combination at all.

I find that random scrolling around within entryfields, not just within text editors, happens to me frequently on laptops where the touchpad is enabled, as the heel of my hand accidentally touches the touchpad. I'm far from the only one to have experienced this. This person suffered from this problem too, as did the person answering in all-capitals.

If you discover that this is your problem, the simple solution is of course to turn the touchpad off. The hard part, as can be seen from that question and the number of "How do I disable the touchpad?" questions in SuperUser, is doing that. ☺

share|improve this answer
    
its definitely not that in this case because I am using my laptop as a desktop with a keyboard and a mouse (and the touch pad is switched off). –  frankster Oct 11 '11 at 12:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.