Monday, January 14, 2013

Re: ctrl-f and ctrl-b don't scroll an entire page

Christian Brabandt wrote:
> Hi John!
>
> On Fr, 11 Jan 2013, John Little wrote:
>
>> On Saturday, January 12, 2013 8:34:24 AM UTC+13, Charles Campbell wrote:
>>> about that "2". Is this "a page has rows lines less 2" standard, or is
>>> it an artifact of my o/s?
>> IIRC vi did that. nvi still does.
>>
>> The 'window' option is clipped to lines minus one, and is only used when there is only one window. Maybe it should be clipped to the height of the window instead, or not clipped at all, and be more useful.
> Yes, it is required by POSIX. Would it make sense to
> allow larger 'window' options?
>
I think that ctrl-f and ctrl-b should have a reference to 'windows':

ctrl-f scrolls |'window'| less two lines; by default, that's the height
of the window less two lines.
ctrl-b scrolls |'window'| less two lines; by default, that's the height
of the window less two lines.

Regards,
Chip Campbell

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: