On 01/12/12 13:02, Ven Tadipatri wrote:
So I tried the ctrl+f. To my surprise, it moved forward a
screen, it neatly positioned the cursor *above* the line I was
just on. So I can move forward one screen *AND* see the
context of the code, in other words what was on the line
before.  Ctrl+b appears to behave in a similar fashion.

While this doesn't sound like default behavior, it sounds like you have 'scrolloff' set to 1.

  :help 'scrolloff'

which allows you to specify the number of context lines to show. To have it always try to center the line on the screen, you can set it to an absurdly high value:

  :set scrolloff=999

-tim



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