On 26/12/08 10:26, François Ingelrest wrote:
> Hi all,
>
> When I type large amount of text (e.g., LaTeX), I use wrapping instead
> of breaking lines. As a result, I get long 'real' lines spanning
> multiple 'visual' lines. I also use :set display=lastline, so that I
> can see as much as possible of the last 'real' line.
>
> My problem is that I can't find something equivalent for the top of
> the window. When I move my cursor down, 'visual' lines appear one by
> one, but when I move my cursor up, 'real' lines appear at once,
> resulting in a large number of 'visual' lines appearing suddenly. This
> is not smooth at all when editing, especially when using a non-zero
> value for scrolloff.
>
> Is there something I can do to fix this? Shouldn't there be an option
> like 'firstline' that could be added to display?
>
> Thanks.

There is no way to "fix" this: the top a Vim window is always at the 
start of a line, with one exception which is when you are editing a line 
which is itself longer than the whole size of the window: it is possible 
to edit any part of that line, including the end.

You will notice (or maybe you have already noticed) that even when you 
move your cursor down, when the first line in the window spans several 
screen lines, but not the whole window, when you do gj (or hit some 
single key mapped to gj) at the bottom of the window that first line 
will suddenly disappear entirely at once, making several screen lines 
appear together at the bottom.


Best regards,
Tony.
-- 
"There are three possibilities: Pioneer's solar panel has turned away
from the sun; there's a large meteor blocking transmission; or someone
loaded Star Trek 3.2 into our video processor."

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to