Friday, February 26, 2010

Re: Naive question: scrolling down keeping only 1 line

On Feb 26, 8:00 am, Jean Johner <jean.joh...@cea.fr> 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).
>

CTRL-F and CTRL-B scroll by "pages" at a time, but I cannot find the
definition of a page in the :help anywhere. z+ and z^ work in an
entirely different way, the behavior is not related.

You have a couple options:

1. Use CTRL-U/CTRL-D instead, and set the 'scroll' option to your
taste
2. Re-map CTRL-F/CTRL-B with an :nnoremap command that issues the
command, then scrolls by 1 line with CTRL-Y/CTRL-E in the correct
direction to get the desired amount of context.

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

Post a Comment