3 ms·
> :r! cat <paste> <ctrl>-D Alternatively, call a utility that can read the clipboard directly. For Xorg: :r! xsel -b For Wayland: :r! wl-paste
by majewsky 7y ago
> :r! cat <paste> <ctrl>-D
Alternatively, call a utility that can read the clipboard directly. For Xorg:
:r! xsel -b
For Wayland:
:r! wl-paste
- dredmorbius 7y agoThat depends on whether or not the clipboard is directly accessible or not. When invoking an editor remotely via SSH, for example, it's not. Though there's often the ability to past into the controlling terminal locally. I do this frequently on Android via Termux, ssh'ing to remote hosts.