Clipboard share remote and local.
required: SSH remote port forwarding
replace nclip (https://github.com/pyar6329/nclip-legacy) by Rust
$ curl -sL -o nclip.tar.zst https://github.com/pyar6329/nclip/releases/latest/download/nclip-$(uname -s)-$(uname -m).tar.zst
$ tar -I pzstd -xvf nclip.tar.zst
$ sudo mv nclip /usr/local/bin/nclip
$ sudo chmod +x /usr/local/bin/nclip
$ nclip --help
Usage: nclip [OPTIONS]
Options:
-c, --copy copy from stdin
-p, --port <PORT> running port [default: 2230]
-s, --server running server
-h, --help Print help
-V, --version Print version
required: SSH remote port forwarding
$ nclip -s
$ nclip
$ echo "hello" | nclip -c
or
$ nclip -c < README.md
set clipboard+=unnamedplus
let g:clipboard = {
\ 'name': 'nclip',
\ 'copy': {
\ '+': 'nclip -c',
\ '*': 'nclip -c',
\ },
\ 'paste': {
\ '+': 'nclip',
\ '*': 'nclip',
\ },
\ 'cache_enabled': 1,
\ }