Y
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
addicted
926 days ago
You’re missing the double quote before the ‘d’ which means you’re talking about a register.
link
CoastalCoder
926 days ago
Ah, thanks. You're right, my brain parsed the gp's comment as simply "dyy".
link
Schiphol
926 days ago
Just for completion, `dd` deletes the current line in vim. I'm not sure what `dyy` should do, if anything.
link
duskwuff
926 days ago
> I'm not sure what `dyy` should do, if anything.
Currently, nothing. `y` isn't a defined motion.
link
tmtvl
926 days ago
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).
link