Hi Charles!

On Fr, 11 Jan 2013, 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).

This is defined by the window option. Unfortunately, you can't set it to 
a higher value then the screen lines (so it will at a maximum scroll 
screen -2 lines).

regards,
Christian
-- 
Du wirst nichts schaffen, ohne mehr zu investieren.
  (Das erste Gesetz der Thermodynamik)

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

Reply via email to