Friday, January 11, 2013

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

Andy Wokula wrote:
> Am 11.01.2013 20:34, schrieb Charles Campbell:
>> Hello!
>>
>> When I press ctrl-f and ctrl-b I seem to get a full page (in my case,
>> 28 lines) less 2, both forward (via ctrl-f) and backward (via ctrl-b).
>> I'd like to have my mpage plugin (which shows a buffer with multiple
>> contiguous pages) scroll forwards and backwards by a full page.
>>
>> I don't see documentation about this (:he ctrl-f says it scrolls a
>> full page), nor did I see any way to modify what vim thought a full
>> page was. Now, I can do
>>
>> noremap <c-f> <c-f>2<c-e>
>>
>> (and similar for <c-b>) to get the effect I want -- but I'm wondering
>> about that "2". Is this "a page has rows lines less 2" standard, or
>> is it an artifact of my o/s? (I've tried it with both vim and gvim
>> under Scientific Linux, huge).
> Maybe you are interested in the scroll commands z+ and z^:
> :h z+
> :h z^
>
> They scroll by exactly one page.
>
Thank you! I'll use these (I'm afraid that I never noticed them before).

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: