11
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.
1Could 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 – 2011-12-08T08:12:32.517Precisely. I take it there is no way to override this behavior of showing wrapped lines in their entirety while scrolling? Thank you. – user001 – 2011-12-08T08:25:32.433
1Not that I know. Wait for answers though, nobody knows what Vim can do. – Benoit – 2011-12-08T08:33:29.140
1agree with @Benoit. Not possible as far as I know. – Fredrik Pihl – 2011-12-08T09:05:28.310
By the way, +1 for a very nice and useful question. – Benoit – 2011-12-08T10:09:04.230
1There 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 – 2011-12-08T12:01:11.820
@RandyMorris: Thanks for letting me know about that. Are the transactions hosted on a sever for public viewing? – user001 – 2011-12-08T23:35:50.880