Read more

Vim: Scroll up/down, keeping your cursor in its row

Arne Hartherz
July 26, 2011Software engineer at makandra GmbH

If you are in the middle of a file and want to scroll, but don't want to move your cursor all the way to the top row, use this:

One line

  • Ctrl+Y → Move viewport down
  • Ctrl+E → Move viewport up (Extra lines)

Half a screen

  • Ctrl+U → Move viewport Up
  • Ctrl+D → Move viewport Down
Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

Those are the default key bindings, they may be different for other layouts/behaviors (like mswin).

Read everything about scrolling in vim in the linked vimdoc Show archive.org snapshot .

Posted by Arne Hartherz to makandra dev (2011-07-26 15:35)