In Vim you can scroll past the bottom/end of a file with the mouse wheel or with ctrl-E. It adds a ~ per line.

However when using ctrl-Y or the mouse wheel to scroll up, you can't scroll past the beginning of the file. Is this possible?

  • Why would you need to do this? I can't think of any reason why you would need to but if you explain what you are trying to accomplish that would need this, maybe there is an alternative solution. – EBGreen Aug 21 '12 at 15:16
  • @EBGreen I have a vertical 2560x1440 screen, I would just like to center small files on the screen. – paps Aug 21 '12 at 16:18
  • I can see that being a valid desire. I would point out though that this desire is an indication that ergonomically your monitor setup is not optimal. – EBGreen Aug 21 '12 at 17:16
  • :split could help – romainl Aug 21 '12 at 17:30
  • @romainl I know there are many ways of fixing my problem. Nevertheless it would have been cool for Vim to have this feature. I don't know any editor that has this. – paps Aug 21 '12 at 17:50

No it's not possible to go above the first line.

| improve this answer | |

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.