rkitover/vimpager — pull request #27 by iftekhar25 (2012-01-28 22:47:24+00:00)
Title: Scrolling <Up> and <Down>

Hi Rafael,

I may be off here, so feel free to chime in. I'm a heavy user of your vimpager and am very happy with it. You may have come across this issue before. Your input is welcome.

Thanks,
Iftekhar.

== Commit Message Below

I usually expect after firing off my pager that pressing down will scroll me
one line down (if possible), and that pressing up will scroll me one line up
(if possible).

With vimpager, I have the trouble that scrolling upwards at the beginning of a
document moves my cursor up, but if I want to move down, I have to invest
keystrokes to move my cursor back to the "scrolloff point" in the document
before any scrolling actually happens.

When quickly viewing man pages or scrolling long git-logs, my fingers will
sometimes move up and down as part of my rhythm, and I've started expecting my
pager to ignore this. Moving up in the beginning of a document or down at the
end of a document has always been meaningless in a read-only paging
environment, so I patched it to behave like that.