Friday, February 26, 2010

Re: Naive question: scrolling down keeping only 1 line

Jean Johner wrote:
> Scrolling down with <Page-down> or CTRL-F keeps 2 lines from
> the previous sceen at the top of the new screen.
>
> z+ does the same keeping 0 line.
>
> Is it possible to keep 1 line (as some other editors do by
> default).

What is your 'scrolloff' setting?

:set scrolloff?

It appears to be non-zero, based on your description. I don't
know if you have manually set it in your vimrc or a plugin has
set it for you:

:verbose set scrolloff?

should tell you where it was last set. You should be able to
tweak this setting to get the behavior you're looking for.

:help 'scrolloff'

hope this helps,

-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

No comments: