Friday, January 11, 2013

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJQ8GpFAAoJEFDgLr75E3sP8dUH/2hmGNZKTXC6yUC0H+USjd2i
3St8LTTTr6xbhyBQVYmgFdijg5r7PWoEluPH65uCiwRDtz4W6b5uMM0C0e2U8U7W
fWOoiEn9bvw1MBIcFiY2GudKckksALD2cLAb7GaAKPvy7dFI2EMuCLPcUps7ioXa
/DZS2RutxMZeGgxmeBrs05vXv3pdeSI03bP7lEq8TQlCatp4rNYgpcKmPhEaeJyn
sfUPdsqthCjXApGgclG9kEvn2mYxuTzmaiQ/g+e6MDHNMjVOyyArEl7RbZRsZ2dN
1sjh7WAYGQfO/34ycnua3uV2K/S0DerwANY+EwU6+uVbac/vJjJRTAn9A99RXgE=
=qN0/
-----END PGP SIGNATURE-----
On 01/11/2013 07:34 PM, Charles Campbell wrote:

> 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).

It has always been thus on all the distros I use quoted below. I,
personally, find it a bonus because it helps to orientate me on the page.

Cheers,

Phil...

--
currently (ab)using
CentOS 5.8 & 6.3, Debian Squeeze & Wheezy, Fedora Beefy & Spherical,
Lubuntu 12.10, OS X Snow Leopard & Ubuntu Precise & Quantal

No comments: