News for hackers. Stuff that matters.
Re:Vim 9.0 by Diederich on Thursday June 30, 2022 @05:12PM (#31938681)
Nope. Back in the day that would greatly interfere with copy/paste. One way or another, it's so easy to see what line number you're on and/or jump to a specific line.
Re:Vim 9.0 by theposey on Thursday June 30, 2022 @05:17PM (#31938734)
can't you just yank to +? you might need the vim build with +clipboard if it's not default these days
Re:Vim 9.0 by deadbunny on Thursday June 30, 2022 @06:31PM (#31939540)
I have vim use the clipboard by default, with that said I still use the mouse to copy stuff now and then.
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.

Re:Vim 9.0 by marcthe12 on Friday July 01, 2022 @08:06AM (#31945269)
It's X11 only. So Wayland or remote users can not use it.
Re:Vim 9.0 by AlecSchueler on Thursday June 30, 2022 @05:23PM (#31938807)

    :set nu!
Just toggle them off when you copy/paste, then on again. Takes a fraction of a second.