Restore the Wayland compositor connection
Example
Normal 0 / 2Command-line 1 / 2Normal 2 / 2Restore the Wayland compositor connection.
Display connection
- Target
wayland-0- State
disconnected; previous automatic reconnect failed
Command entered · ready to apply
Display connection
- Target
wayland-0- State
disconnected; previous automatic reconnect failed
Reinitializes the connection to the Wayland compositor at wayland-0, useful for a long-lived terminal Vim after that server restarts. No selection/clipboard content is copied.
Display connection
- Target
wayland-0- State
reinitialized connection- v:clipmethod
updated for the restored display connection
Before & after
Before
Display connection
- Target
wayland-0- State
disconnected; previous automatic reconnect failed
After
Display connection
- Target
wayland-0- State
reinitialized connection- v:clipmethod
updated for the restored display connection
Subject: :wlrestore. Documentation-backed illustration; assumes terminal Vim compiled with +wayland, running reachable compatible fixture Wayland compositor at wayland-0; successful simulated reconnect; the old connection was cleared after a detected disconnect and failed automatic reconnect; the compositor is now reachable again; not replay-verified. Reinitializes the connection to the Wayland compositor at wayland-0, useful for a long-lived terminal Vim after that server restarts. No selection/clipboard content is copied.
notesCursor on line 1, column 1Details & Vim help
Restore the Wayland compositor connection. This Ex reference uses the full command name; the alphabetical index omits arguments. Supply the ranges, arguments, flags and prerequisite state documented in the linked help. Press Enter to submit a complete command. The index spelling :wl[restore] puts the optional abbreviation suffix in square brackets; those brackets are not typed. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.