vim: how do I keep 10 lines visible when scrolling up to EOF with CRTL-F ???
Posted
by Gaston
on Server Fault
See other posts from Server Fault
or by Gaston
Published on 2010-05-28T01:20:50Z
Indexed on
2010/05/28
1:33 UTC
Read the original article
Hit count: 305
Hello! I am used to use vi, not vim. What I find annoying in vim is that when you are scrolling with CTRL-F and reach EOF, vim scrolls down to the very last line and put this line on the top of your screen, and you can't see the lines above. You must scroll up a little bit so you can see the context. All this happens with CTRL-F only, not with j or the down cursor key. In vi, you scroll down (with CTRL-F), but when you reach EOF it still show you, say, 15 lines and then the tippical ~. I am using Putty for remote access.
How can I config vim to behave like vi in this case?
Hope you understand the question. Thank you! Gaston.
© Server Fault or respective owner