News for hackers. Stuff that matters.
Re:The weight of the clipboard by Veen on Wednesday January 05, 2022 @04:45AM (#29807051)
dd deletes the line under the cursor. "dd deletes something into the d register (the " is part of the command that selects the register). "d selects the register. The second d is the delete command. So you could do something like "dd2w to delete the next two words and save them into the d register. The same thing works with any named register, so a less confusing example might have been "cd2w to delete into the c register.
Re:The weight of the clipboard by Tyr42 on Wednesday January 05, 2022 @11:11AM (#29810778)
There's also a dedicated null register "_, so "_d really just deletes it without storing it anywhere. But I agree _ is harder to reach than d.

I also really like junegunn/vim-peekaboo, which really helps if I know I copied something, but I'm not sure how far down the stack it is.