Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .