Window Class

class pynvim.api.Window(session: IRemote, code_data: Tuple[int, Any])[source]

A remote Nvim window.

property buffer: Buffer

Get the Buffer currently being displayed by the window.

property col: int

0-indexed, on-screen window position(col) in display cells.

property cursor: Tuple[int, int]

Get the (row, col) tuple with the current cursor position.

property height: int

Get the window height in rows.

property number: int

Get the window number.

property row: int

0-indexed, on-screen window position(row) in display cells.

property tabpage: Tabpage

Get the Tabpage that contains the window.

property valid: bool

Return True if the window still exists.

property width: int

Get the window width in rows.