Vim Recall繁體中文

Restore the Wayland compositor connection

:wlrestore

Example

Normal 0 / 2

Restore the Wayland compositor connection.

Display connection

Target
wayland-0
State
disconnected; previous automatic reconnect failed
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.

Sample buffer
notes
Cursor on line 1, column 1
Details & 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.