Home Explore Blog CI



neovim

12th chunk of `runtime/doc/intro.txt`
4b7cd5a83d2d98d3b38c3208929c1a92537ff716ecee4cd10000000100000818
 on the last line.

==============================================================================
Definitions                                             *definitions* *jargon*

- buffer: Contains lines of text, usually from a file.
- screen: The whole area that Nvim uses to display things.
- window: A view on a buffer.  There can be multiple windows for one buffer.
- frame: Windows are kept in a tree of frames.  Each frame contains a column,
  row, or window ("leaf" frame).

A screen contains one or more windows, separated by status lines and with the
command line at the bottom.
>
        +-------------------------------+
 screen | window 1      | window 2      |
        |               |               |
        |               |               |
        |= status line =|= status line =|
        | window 3                      |
        |                               |
        |                               |
        |==== status line ==============|
        |command line                   |
        +-------------------------------+
<
The command line is also used for messages.  It scrolls up the screen when
there is not enough room in the command line.

A difference is made between four types of lines:

- buffer lines:  The lines in the buffer.  This is the same as the
                 lines as they are read from/written to a file.  They
                 can be thousands of characters long.
- logical lines: The buffer lines with folding applied.  Buffer lines
                 in a closed fold are changed to a single logical line:
                 "+-- 99 lines folded".  They can be thousands of
                 characters long.
- window lines:  The lines displayed in a window: A range of logical
                 lines with wrapping, line breaks, etc.  applied.  They
                 can only be as long as the width of the window allows,
                 longer lines are wrapped or truncated.
- screen lines:  The lines of the screen that Nvim uses.  Consists of
                 the window lines of all windows, with status lines
     

Title: Definitions and Types of Lines in Vim
Summary
This section defines key terms like buffer, screen, window, and frame within the context of the Vim editor. It also explains the role of the command line, especially in displaying messages. Furthermore, it differentiates between four types of lines in Vim: buffer lines (as read from/written to a file), logical lines (buffer lines with folding applied), window lines (lines displayed in a window with wrapping and line breaks), and screen lines (lines of the screen consisting of window lines and status lines).