*wayland.txt* For Vim version 9.1. Last change: 2025 Jun 28 VIM REFERENCE MANUAL by Bram Moolenaar Wayland Protocol Support *wayland* 1. Useful Wayland information |wayland-useful| 2. Wayland selections |wayland-selections| ============================================================================== 1. Useful Wayland information *wayland-useful* *wayland-seat* Functionality such as the clipboard for Wayland requires a seat to use. A Wayland seat can consist of a keyboard, pointer, and touch device(s). The seat to use can be set with the 'wlseat' option. Only useful if you use multiple Wayland seats in the same Wayland session. *wayland-gui* See |gui-wayland|. Please note that when using the GUI, Vim uses the toolkit such as GTK for accessing the clipboard, and does not access the clipboard though Wayland. You can check this though the |v:clipmethod| variable, which should equal to "none" when running the GUI. Wayland commands: *:wlrestore* *:wl* :wl[restore] [display] Reinitializes the connection to the Wayland compositor. Useful when running Vim in a screen/tmux session that continues running after the Wayland compositor restarts. [display] should be in the format of the $WAYLAND_DISPLAY environment variable (e.g. "wayland-0"). If [display] is omitted, then it reinitializes the connection using the same value as was used for the previous execution of this command. If the value was never specified, then it uses the value of $WAYLAND_DISPLAY environment variable. This will also update |v:clipmethod|. {only available when compiled with the |+wayland| feature} Wayland errors: *E1548* Vim failed communicating with the Wayland compositor. This is likely due to the Wayland compositor process being killed. Try the `:wlrestore` command to try connecting again. ============================================================================== 2. Wayland Selections *wayland-selections* Vim supports the wlr-data-control-unstable-v1 and ext-data-control-v1 protocols, for accessing the current Wayland selection. These are the best case scenario protocols, see |wayland-focus-steal|. Selection in this case essentially means the "clipboard." You can check if your Wayland compositor supports either of these protocols by running the wayland-info command, which should be bunded with libwayland on your system: > wayland-info | grep -E '(ext_data_control|zwlr_data_control)'