Search notes:

Vim: windows

A window can show a portion of a buffer. The same buffer can be viewed in multiple windows.

vim internals

Information about a window is stored in the window_S struct.
The first window (and its buffer) is created in win_alloc_first() (window.c);

Linked list of windows

The vim sources store all windows (that are not hidden?) in a linked list.
The global variables firstwin, lastwin and curwin (globals.h) point to the respective entry in this list.

Window frame tree

The layout is practically a tree of frames whose root is pointed at by the global variable topframe.

See also

buffers
vim - editing
drawscreen.c
The wininfo_T struct stores information that pertains to a Window stored with a buffer.

Index