Hacker News new | ask | show | jobs
by CoastalCoder 926 days ago
As a perpetually novice vim user, I actually would have expected "dyy" to mean Delete the current line.

But that probably just proves my novice status.

1 comments

You’re missing the double quote before the ‘d’ which means you’re talking about a register.
Ah, thanks. You're right, my brain parsed the gp's comment as simply "dyy".
Just for completion, `dd` deletes the current line in vim. I'm not sure what `dyy` should do, if anything.
> I'm not sure what `dyy` should do, if anything.

Currently, nothing. `y` isn't a defined motion.

Maybe it should remove the top item from the list of copied items? Assuming that vim has one of those (in Emacs parlance it's called the kill ring).