Window Class

class pynvim.api.Window(session, code_data)[source]

A remote Nvim window.

buffer

Get the Buffer currently being displayed by the window.

col

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

cursor

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

height

Get the window height in rows.

number

Get the window number.

row

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

tabpage

Get the Tabpage that contains the window.

valid

Return True if the window still exists.

width

Get the window width in rows.