# vi / vim abrumpt buffer movements within window

When using :set wrap in vi/vim, the contents of an entire wrapped line are placed in the display buffer upon moving the cursor into a new line, even when navigating through a file by display line (gj/gk) as opposed to real line (j/k). For example, if a line is wrapped over 5 screen lines and is currently outside the display buffer, the buffer will jump by 5 lines when navigating into this line to force the entire line to fit in the screen. Is there a way to disable this behavior? Note that set display+=lastline will allow the display of partial lines when a wrapped line is forced off the screen by navigating away from the line, but this does not resolve the buffer jumps that occur when navigating into a line that was initially outside the buffer.

Clarification: In case the above description is nebulous, the gist is that I would like to be able to scroll smoothly in vim with line wrapping enabled such that lines will be partially displayed off the screen rather than obligatorily being displayed in their entirety.

• Could you confirm that what you mean is: you want part of the wrapped portion of the line to be off-display and be able to scroll smoothly? Vim shows lines entirely when 'wrap' is on I'm afraid – Benoit Dec 8 '11 at 8:12
• Precisely. I take it there is no way to override this behavior of showing wrapped lines in their entirety while scrolling? Thank you. – user001 Dec 8 '11 at 8:25
• Not that I know. Wait for answers though, nobody knows what Vim can do. – Benoit Dec 8 '11 at 8:33
• agree with @Benoit. Not possible as far as I know. – Fredrik Pihl Dec 8 '11 at 9:05
• There is currently a discussion on the vim_dev mailing list on this topic. It seems you aren't the only one with this request. – Randy Morris Dec 8 '11 at 12:01

Not a complete answer, but maybe a lead. There's scroll option. Help for that option reads, among other things:
in normal mode, you can jump between the displayed parts of a wrapped line by using gk and gj (g<up> or g<down>). This vim wikipage explains how to change the behaviour permanently.