29

I know that gg and G can move the cursor to the top and bottom of the file. But is there a way to jump to the top or bottom of the visible window?

37

Type H (capital H) to move to the top of the screen.

Type L (capital L) to move to the bottom of the screen.

| improve this answer | |
  • 8
    By the way, M (capital M) to move to the middle of the screen. – Caco Jun 12 '19 at 12:09
  • 1
    Since j moves down and k moves up, it's a little awkward that J and K don't make these top/bottom movements. Is there a mnemonic to remember these by, similar to M for "middle" like @Caco points out? – user1717828 Mar 4 at 3:02
  • 3
    @user1717828 H for High, L for Low. – 200_success Mar 4 at 4:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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