On 12/03/10 16:08, Conker wrote:

I have set wrap and linebreak options, also display=lastline to show the
beginning of lines, that don’t fit entirely on the screen. Keys are mapped,
so that up/down keys scroll vertically the displayed rows of a wrapped line.
However, when i scroll to onto that last line that is only half displayed,
the beginning of this line is put at the very top of the screen (so most of
it can be displayed), instead of just smoothly scrolling down one row. Got
no idea how to fix that.

With 'display' set to "lastline" (and 'wrap' on) you will see as much data as will fit onscreen, with @@@ at the end of the last screen line if that line doesn't fit. However, one thing to keep in mind is that, with one exception, the following are always true in Vim:

- The first line of a window always starts at the start of a file line.
- The line containing the cursor is always shown in its entirety.

The one exception is when the line containing the cursor is too long to fit within the current window. Then Vim will display as much as it can, including the cursor, with possible truncation at both top and bottom.

This means that when repeatedly hitting j to place the cursor on successive lines, occasionally (with 'wrap' on) there will be some "jerky" movements:

- when it is necessary to move the first visible line off the screen, that line will move away as one block. If it is a long line and occupies several "screen lines", all those lines will move away together.

- when it is necessary to move the next line into the window in order to place the cursor on it, it will also become fully displayed (if it fits), thus possibly (if it is a long line) moving several lines off the top of the window.

If all your lines are too long to fit within a window, then the only time when you'll perhaps see smooth scrolling is when moving from one point to another of a single "file line". When moving from one "very long line" to the next, the whole current line will move away to make place for the new line to be displayed, or part of it if it doesn't fit.


Best regards,
Tony.
--
CUSTOMER:     You're not fooling anyone y'know.  Look, isn't there something
              you can do?
DEAD PERSON:  I feel happy... I feel happy.
    [whop]
CUSTOMER:     Ah, thanks very much.
MORTICIAN:    Not at all.  See you on Thursday.
CUSTOMER:     Right.
The Quest for the Holy Grail (Monty Python)

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