Why does vim hide wrapped lines and print multiple @s?

By default it vimends the lines, but if they are really long, you can only see the characters @on the screen. What is the name and purpose of this function?

+3
source share
2 answers

I do not know the name of the function, but this is a break in the original vi editor for vi. The "@" lines will appear at the end of the display buffer when the wrapped line is too long to display when part of the line is displayed off-screen. IIRC (30 years have passed since I used this special function), it was also used to delay loading long lines until you need them, even if they are fully visible.

300- , , , . , , vi , . . , , . 2 3 , , , 5, 5G , , .

24- , , , 10 . .

+5

:help 'display'

    lastline        When included, as much as possible of the last line
                    in a window will be displayed.  When not included, a
                    last line that doesn't fit is replaced with "@" lines.

:set display+=lastline

+5

All Articles