News for hackers. Stuff that matters.
Re:Vim 9.0 by u801e on Friday July 01, 2022 @12:07AM (#31942235)
Depending on your OS, you could use visual line mode and highlight the text you want to copy. Then you can run:

    '<,'>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.
Re:Vim 9.0 by OJFord on Friday July 01, 2022 @03:51AM (#31943598)
> Macs have another program that works similar to xclip, but I don't remember what it's called.

pbcopy

While I'm here, on Wayland substitute wl-copy (or whatever you use).

Re:Vim 9.0 by xigoi on Friday July 01, 2022 @03:38AM (#31943517)
What's the advantage of this command over "+y ?
Re:Vim 9.0 by u801e on Friday July 01, 2022 @10:34AM (#31946941)
If vim doesn't have clipboard support enabled, then this is one way to copy and paste. The vim packages in the Fedora repositories are configured such that vim doesn't have clipboard support, but gvim does.
Re:Vim 9.0 by OJFord on Friday July 01, 2022 @03:53AM (#31943615)
Not GP, but for me it's simply that I remember it (or rather don't need to, because it's just using general purpose mechanisms that I already remember).

But now you've said it maybe I'll remember if I need it today, and.. well I'll see.