Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6806049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:39:45+00:00 2026-05-26T19:39:45+00:00

By default when you scroll down to the end of a displayed buffer in

  • 0

By default when you scroll down to the end of a displayed buffer in a vim window, you can scroll until the last file line is on first line of the vim display area. All other lines of the display area are marked with “~” characters.
Is there a configuration to stop scrolling when the last file line is at the bottom of the vim window?

Edit:
To be more precise this behavior only apply to mouse wheel scroll or PgDown key navigation that fill the screen with those non-existant line marks. I the cursor is moved line by line using the down arrow key, it stops correctly at the last file line.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T19:39:45+00:00Added an answer on May 26, 2026 at 7:39 pm

    Simply zb to align the current line to the bottom of the window.

    E.g. Gzb

    Not surpisingly there is a family of related panning motions:

    • zj down
    • zk up
    • zt top
    • zb bottom
    • zz center (middle)
    • zz center (middle)

    For completeness:

    • zl / zL vertical pan to the right
    • zh / zH vertical pan to the left

    Also, have a look at scrolloff

    I use

    :set scrolloff=2
    

    to always keep a minimum buffer of 2 lines before or after the current cursor line. This makes these panning motions almost magical. I spend all day browsing code bases using nothing but

    • paging C-d/C-u, hjkl, and frequent panning relocations with (mostly) zz
    • navigating }/{
    • ctags for all other navigation needs
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

You can easily see the problem on the first page here: http://m.vancouverislandlife.com/ Scroll down
how the set the text area always scroll down . its default the scroll
Can we change a scroll bar styling, Instead of default scroll bar, I want
I want to implement a scroll function.. So the default of scroll is disabled.
I am using jScrollPane to scroll a div. Currently the default is to click
By default, emacs 22.1.1 only shows the top of the compilation buffer when you
The default 64 MB max heap memory can be small for a large Java
SCROLL DOWN if you just want to see the question without much explanation I
Take a look at the this link . Scroll down a bit and you
I have an absolutely positioned DIV with overflow auto. When I scroll down, the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.