can't you just yank to +? you might need the vim build with +clipboard if it's not default these days
'<,'>w !xclip -selection clipboard
to copy the text to your clipboard. Macs have another program that works similar to xclip, but I don't remember what it's called.But now you've said it maybe I'll remember if I need it today, and.. well I'll see.
pbcopy
While I'm here, on Wayland substitute wl-copy (or whatever you use).